title: comparing 2 files using java
body: <p>i have 2 text files, file_1: and the other file2</p>
  
  <pre><code>file_1:
  
  tango 12
  beta 256
  alpha 1700
  tango 1200
  
  file_2:
  
  tango 12
  tango 125 hello world
  beta 256
  alpha 1700
  </code></pre>
  
  <p>i need to remove lines in file_2 which contains file_1 entries.
  ie. read line by line from file_2, compare with file_1 lines, if match , remove , else append to a new file. matches are exact string matches, both are text files.
  can any one tell me how can i do it using java</p>