197k views
5 votes
which class do you use to write data into a text file? question 3select one: a. scanner b. file c. system d. printwriter

1 Answer

6 votes

Answer: d. PrintWriter

Step-by-step explanation:

To write data into a text file in Java, you typically use the PrintWriter class.

User Juramarin
by
8.2k points