public static void main(String args[]) {
	  Scanner reader = new Scanner(System.in);
	  char loop = 'y';
	  
	  while (loop == 'y'){
	  String first, second;
	  Scanner scan = new Scanner(System.in);
      System.out.println("-----Minimal Edit Distance-----");
      System.out.print("Please input the first string: ");
      first = scan.nextLine();
      System.out.print("Please input the second string: ");
      second = scan.nextLine();
      int H = EditDistance(first, second);
      System.out.println("The minimal edit distance of these two strings is " + H);
      System.out.print("Do you wish to run the program again? (y or n): ");
      loop = reader.next().trim().charAt(0);
	  }
	  reader.close();
   }