To write a newline character when using FileWriter, you can use ________.

  • "n"
  • "n"
  • "r"
  • 'n'
To write a newline character when using FileWriter, you can use "n". This escape sequence represents a newline character in Java and is commonly used to create line breaks in text files.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *