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 06:30
On early television stations, what typically filled the screen from around 11pm until 6am? test dummies test patterns tests testing colors
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Jace needs to answer a question on square roots to win a quiz. how can he use a spreadsheet to find the square root of 786? a. use the functions round and count b. create a table and chart c. use the function sqrt d. use the function now
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
The basic work area of the computer is it screen that you when you first fire up your computer
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
If i wanted to include a built-in calendar in a document, what option could i select? draw table insert table insert chart quick tables
Answers: 1
You know the right answer?
//chapter 13 (file input and output), java programming, joyce farrell, 8th edit//debugthirteen3.java...
Questions
question
Mathematics, 28.07.2019 21:30
Questions on the website: 13722362