title: Create a new line in Java's FileWriter
body: <p>I have coded the following <code>FileWriter</code>:</p>
  
  <pre><code>try {
      FileWriter writer = new FileWriter(new File("file.txt"), false);
  
      String sizeX = jTextField1.getText();
      String sizeY = jTextField2.getText();
      writer.write(sizeX);
      writer.write(sizeY);
  
      writer.flush();
      writer.close();
  } catch (IOException ex) {}
  </code></pre>
  
  <p>Now I want to insert a new line, just like you would do it with <code>\n</code> normally, but it doesn't seem to work.</p>
  
  <p>What can be done to solve this?</p>
  
  <p>Thank you.</p>