JFileChooser to select multiple text files and compare them
<p>I want to select multiple text files using a JFileChooser and then compare them. 
The code to choose multiple files is as below</p>

<pre><code>    JFileChooser chooser = new JFileChooser();
    chooser.setMultiSelectionEnabled(true);
    Component frame = null;
    chooser.showOpenDialog(frame);
    File[] files = chooser.getSelectedFiles();
</code></pre>

<p>How do i use the file handle to compare multiple files. Is it possible to compare multiple text files using this method.
I have multiple text files, and i want to check if the contents of all the files match. If the contents are exactly the same, i see MATCH and if the text files are different, i see FAIL along with the difference in content.
Thanks a lot for your help</p>