Write an expression whose value is a reference to a newly created PrintWriter object associated with a file named “output .txt”. (Do not concern yourself with any possible exceptions here–assume they are handled elsewhere.)

LANGUAGE: JAVA

CHALLENGE:

Write an expression whose value is a reference to a newly created PrintWriter object associated with a file named “output .txt”. (Do not concern yourself with any possible exceptions here–assume they are handled elsewhere.)

SOLUTION:

new PrintWriter("output.txt")