Java debugging help

United States
April 3, 2009 9:45pm CST
I am getting an error when compiling my java code for my homework, 'else' without 'if' on line 152, i cannot figure out why for the life of me, any and all in put is much appreciated. and now mylot is telling me that i cant copy and paste! this code is long so ill upload it to rapidshare and drop a link, but i really need help with this code. http://rapidshare.com/files/217177885/Coach.java i even made it so guest users can download it for free without wait times, that is how bad i want this code fixed.
1 person likes this
1 response
@ruperto (1552)
• Philippines
10 Apr 09
Hi sdk_mail, it seems line 146 has a excess ";" line 146 best therefore be: if (confirm==true) { Also it seems line 165 is unreachable: Line 165 may be commented out? line 165(option): //return seat hope it helps a bit. There's a saying: "that which we persist in doing becomes easier not because the task has changed but because our ability to do has increased " Cheers
• United States
10 Apr 09
thanks, now the program is working perfectly, and the commented out line was used for debugging. Thanks again.