Question: Integer futonQuantity and string guestName are read from input. A FileOutputStream named fileStream is declared and the file named data.txt is opened. Then, a PrintWriter
Integer futonQuantity and string guestName are read from input. A FileOutputStream named fileStream is declared and the file named data.txt is opened. Then, a PrintWriter named dataFS is declared and associated with the file. Write the following to the opened file: "Memo:" "+++" futonQuantity, followed by " futons for " and guestNameEnd each output with a newline. Finally, close the file. Java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
