Which class do you use to write data into a text file?

a. File
b. PrintWriter
c. Scanner
d. System

b. PrintWriter

Computer Science & Information Technology

You might also like to view...

Which of the following functions could be used to input the user’s first name?

a. ask user for a number b. ask user for a Boolean c. ask user for yes or no d. ask user for a string e. None of these

Computer Science & Information Technology

Write four different program statements that increment the value of an integer variable total.

What will be an ideal response?

Computer Science & Information Technology