83.4k views
0 votes
Given an initialized String variable message, and given a PrintWriter reference variable named output that references a PrintWriter object, write a statement that writes the string referenced by message to the file in to which output streams.

User PKlumpp
by
5.3k points

1 Answer

3 votes

Answer:

The output streams to this question is "output.print(message)".

Step-by-step explanation:

The description of the following can be given as:

  • In the given question it is define a string datatype variable that is "message".
  • Then we create a reference variable of PrintWriter class that is "output" and call string type variable that is message by the use of the print function we print message.
User Kiwicopple
by
5.6k points