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...

Write a code fragment that determines and prints the number of times the character 'z' appears in a String object called name.

What will be an ideal response?

Computer Science & Information Technology

Print as a PDF allows you to print a presentation to a PDF file

Indicate whether the statement is true or false

Computer Science & Information Technology

What does >= mean?

A. less than B. greater than C. less than or equal to D. greater than or equal to

Computer Science & Information Technology

Which of the following options to chown changes the ownership of all the subdirectories of any specified directories, rather than just the files or directories that are explicitly passed to it?

What will be an ideal response?

Computer Science & Information Technology