Java Program DB 2
There are more than 30 classes provided in the Java API that handle streaming. To help the development team get up to speed quickly on a few, you will find and discuss some of them. Peruse the Java API and find one class that handles writing text to a file. Post an essay that answers the following questions:
- Why did you choose this class to discuss?
- Does this class allow you to append to an already existing file?
The following is text to write to a file:
1001 Jennifer Ward SUPPLIES 2140.20 BOOKS 5200.10 PAPER 455.23 NORTH Phone
1003 Athena Andrews SUPPLIES 5155.55 BOOKS 6300.50 PAPER 223.25 SOUTH Email
1005 Andy Smith SUPPLIES 6155.55 BOOKS 300.50 PAPER 55.55 SOUTH Email
1006 Robert Stearns SUPPLIES 7255.55 BOOKS 8300.50 PAPER 77.77 SOUTH Phone
If you were to use this class to write the above 4 lines to a file, what would the pseudocode look like?
If you were to use this class to write the above 4 lines to a file, what would the Java code look like? Include any calls required to construct an instance of the selected class. The syntax should be accurate.