Answer:

Writer

Writer

(Review: ) IO streams are either character-oriented or byte-oriented. Character-oriented IO is specialized for handling character data. Byte-oriented IO is general purpose IO that involves all types of data. This chapter does character-oriented output to a disk file and uses a Writer stream.

IO hierarchy

What class should be used for writing to a file? A class that descends from Writer is what you want. You can look under Writer in the Java documentation for to find the class you need. Do that now, on your own hard disk if you can. Find a class that might be good for writing to a disk file.

QUESTION 2:

Does the class FileWriter look like a likely candidate?