There are two text files. I hope to know what is the most simplest JAVA way to check if their CONTENTS are equivalent each other.
On shell, I usually use diff
command:
$ diff 1.txt 1.same.txt # nothing is shown if 1.txt and 1.same.txt have the same contents
$ diff 1.txt 2.txt
4a5,6
> 20, -, 22.0
> 10, 10.0, -