Create a PrintStream object using dos and assign the resulting reference to ps, a PrintStream variable that has already been declared.

Create a PrintStream object using dos and assign the resulting reference to ps, a PrintStream variable that has already been declared.

LANGUAGE:  JAVA

CHALLENGE:

One of the constructors for PrintStream class has a single OutputStream argument.
Assume that dos is a variable that references an OutputStream object.

Create a PrintStream object using dos and assign the resulting reference to ps, a PrintStream variable that has already been declared.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level