drinaaileenx2828 drinaaileenx2828
  • 30-12-2019
  • Computers and Technology
contestada

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.

Respuesta :

yusuf7samaila yusuf7samaila
  • 02-01-2020

Answer:

output.write("Hello, World")

Explanation:

A printWriter object (An instance of a class) is contained in a variable called output, to access the write method we use the dot (.) operator to access the write method of the output object and hence, output.write() outputs any string it takes as argument. this is a very interesting OOP (Object oriented programming concept).

Answer Link

Otras preguntas

what is 7/12 divided by 14/15
how do you write the word phrase for the algebraic expression y/5-10
Find the value for each variable. For the circle, the dot represents the center. (a is the letter)
Why do resistors have tolerance?
What volume of 1.5M NaOH is needed to provide 0.75 mol of NaOH? (a) 500L  (b) 5.0 L  (c) 500 mL  (d) 0.75 L Can someone explain me how to make it step by step?
The vertex of a parabola is a. either the maximum or minimum point b. the point where x is zero or y is zero c. the only point where y is known d. line which d
two factors of 72 that add up to equal -18
Why did the Montgomery bus boycott succeed?
what rights do people give up when they accept totalitarian rule
two factors of 72 that add up to equal -18