Ordered words: Difference between revisions
Content added Content deleted
(New post of program using Java 16 syntax in addition to an existing Java example which was retained.) |
m (Removed unwanted comment.) |
||
Line 2,629: | Line 2,629: | ||
public static void main(String[] aArgs) throws IOException { |
public static void main(String[] aArgs) throws IOException { |
||
List<String> ordered = Files.lines(Path.of(" |
List<String> ordered = Files.lines(Path.of("unixdict.txt")) |
||
.filter( word -> isOrdered(word) ).toList(); |
.filter( word -> isOrdered(word) ).toList(); |
||