how to change line in javaline in filewriter code example Example: java filewriter new line fileWriter.write(System.lineSeparator());