title: How to create a Gzip archive in java, from strings?
body: <p>I have 3 strings, each one of them representing a <code>txt</code> file content, not loaded from the computer, but generated by <code>Java</code>.</p>
  
  <pre><code>String firstFileCon = "firstContent"; //File in .gz: 1.txt
  String secondFileCon = "secondContent"; //File in .gz: 2.txt
  String thirdFileCon = "thirdContent"; //File in .gz: 3.txt
  </code></pre>
  
  <p>How do I create a <code>GZIP</code> file, with the three files in it, and save the compressed file to the disc?</p>