(String[] words, int loc)
| 29 | } |
| 30 | |
| 31 | public static String wordAtLocation(String[] words, int loc) { |
| 32 | if (loc < 0 || loc >= words.length) { |
| 33 | return null; |
| 34 | } |
| 35 | return words[loc]; |
| 36 | } |
| 37 | |
| 38 | // Method to confirm other result |
| 39 | public static boolean searchConfirm(String[] words, String word1, String word2, int distance) { |