title: How to merge multiple files in Java?
body: <p>Is there a way I can merge multiple files together? for example</p>
  
  <p>file1:</p>
  
  <pre><code>1 A
  2 B
  3 C
  </code></pre>
  
  <p>File2:</p>
  
  <pre><code>4 D
  5 E
  6 F
  </code></pre>
  
  <p>MERGED TOGETHER OUTPUT</p>
  
  <pre><code>1 A 4 D
  2 B 5 E
  3 C 6 F
  </code></pre>