Words from neighbour ones: Difference between revisions

Content added Content deleted
m (Minor edit to Java code)
Line 512: Line 512:
continue;
continue;
if (Collections.binarySearch(words, word) >= 0)
if (Collections.binarySearch(words, word) >= 0)
System.out.println(String.format("%2d. %s", ++count, word));
System.out.printf("%2d. %s\n", ++count, word);
previousWord = word;
previousWord = word;
}
}