Hi Rajitha,
I have done a similar tool.
I will tell you steps and class imported so that you can apply your logic if the require is same
I have used BufferedReader to import a file in my Comparator class
1) Go to location of logfile1
2) Read the files in the constructor of the Comparator class
3) Read the logfile1
4) Write a compare method in the Comparator class which will take Comparator as an argument.
5) From logfile1 call the method by passing logfile2 as argument.
6) Take both files into a
String array object.
7) Compare both files lengths if applicable.
8) Loop both arrays internally and compare for equality of both strings
I do not know if i answered your question well.........But i am trying to base my implemetation for your question.
If you want a design view, then think of classes and methods required keeping the above steps in mind.