[java] How to write new line character to a file in Java