Given a PrintWriter reference variable named output that references a PrintWriter object, write a statement that writes the string “Hello, World” to the file output streams to.
LANGUAGE: JAVA
CHALLENGE:
Given a PrintWriter reference variable named output that references a PrintWriter object, write a statement that writes the string “Hello, World” to the file output streams to.
SOLUTION:
output.print("Hello, World");