subject

//chapter 13 (file input and output), java programming, joyce farrell, 8th edit//debugthirteen3.java//output, need to fix// crestes a file of entrees sold at a restaurantimport java. nio. file.*; import java. io.*; import static java. nio. file. accessmode.*; import java. util. scanner; public class debugthirteen3{ public static void main(string[] args) { path file = paths. get("c: \\java\\chapter.13\\debugdata4.txt" ); scanner kb = new scanner(); string[] array = new string[2]; string string = ""; string delimiter = ","; string entree; string price; final string quit = "zzz"; try { outputstream output = new bufferedoutputstream(files. newoutputstream(file)); bufferedwriter writer = new bufferedwriter(new outputstreamwriter(output)); system. out. print("enter first entree or " + quit + " to quit > > "); entree = kb. nextline(); while(! entree. equals(quit)) { system. out. print("enter price > > "); price = kb. nextline(); string = entree + delimiter + price + system. getproperty("line. separator"); writer. write(string, 0, string.; system. out. print("enter next entree or " + quit + " to quit > > "); entree = kb. nextline(); } writer. close(); } catch(exception e) { system. out. println("message: " + e); } }}//debugdata1.txtsomewhere over the //debugdata2.txtthere's no place like home. are you a good witch or a bad witch? //debugdata3.txt435-9845239-9845981 -9883384-5656875-3784874-//debugdat a4.txtsteak,20lobster,30macaroni,8s paghetti,10

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 20:00
What software programs are used to to create professional publication? a.) graphics programs b.) word processors c.) page layout programs d.) spreadsheet programs
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Which set of steps will organize the data to only show foods with more than 100 calories and rank their sugar content from greatest to least?
Answers: 1
question
Computers and Technology, 24.06.2019 05:30
How do i get rid of my member ship for
Answers: 2
question
Computers and Technology, 25.06.2019 04:10
While creating a web page, what does each of the following html tags define? 1. 2. 3. 4. a. defines a new paragraph b. defines a term c. defines a single line break d. defines a heading
Answers: 1
You know the right answer?
//chapter 13 (file input and output), java programming, joyce farrell, 8th edit//debugthirteen3.java...
Questions
question
Mathematics, 04.12.2020 08:30
question
Mathematics, 04.12.2020 08:30
question
Mathematics, 04.12.2020 08:30
question
Mathematics, 04.12.2020 08:30