![]() |
IOBit Software
|
|
|
||||||
| Programming Place to discuss programming including HTML, Java, C++, MySQL and others. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
double price;
The line above is the line it says the ";" is expected. I don't know why it is an error because I have all the semicolons on the other lines also. Please Help Matt |
| Sponsored links |
|
|
|
#2
|
||||
|
||||
|
Please post all of your code, the Java compiler can point to the wrong line at times.
__________________
If at first you dont succeed, try, try again. Then quit. There's no point being a damn fool about it. |
| The Following User Says Thank You to MutD For This Useful Post: | ||
penpenyang (12-02-12) | ||
|
#3
|
|||
|
|||
|
check the line about "double price;" and make sure there is a ; there. If that isn't the case then post all (or at least a good chunk surrounding the problem) as java compilers don't always make sense when they point to an error
|
|
#4
|
|||
|
|||
|
I fixed it. I re-wrote the whole code exactly the same under a different file name and it worked, so i don't really know why it didn't work the first time but now it is.
|
|
#5
|
|||
|
|||
|
Welcome to Java :-)
|
| The Following User Says Thank You to JJJIrish05 For This Useful Post: | ||
penpenyang (12-02-12) | ||
| Sponsored links |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error Message "XUL Runner" Platform Version "1.9.0.4" not Compatible | zyklon | Software | 2 | 02-17-09 20:28 |
| "Java - Error applying transforms" | maybeok | Software | 1 | 05-25-08 01:13 |
| "Invalid Boot.ini" or "Windows could not start" error messages | bjgarrick | Other | 0 | 12-08-07 15:12 |
| "AVG has detected a Virus: "Java Byteve" | Papa Ray | Malware Removal | 2 | 11-14-04 21:04 |