Java I/O Programming : Exercises, Practice, Solution
Java Input-Output Exercises [18 exercises with solution]
6. Write a Java program to compare two files lexicographically. Go to the editor
According to Wikipedia:
In mathematics, the lexicographic or lexicographical order (also known as lexical order, dictionary order, alphabetical order or lexicographic(al) product) is a generalization of the way the alphabetical order of words is based on the alphabetical order of their component letters. This generalization consists primarily in defining a total order over the sequences (often called words in computer science) of elements of a finite totally ordered set, often called alphabet.
Click me to see the solution
Java Code Editor
More to Come !