![]() |
|
#1
|
|||
|
|||
Errors in CompilingI am getting very confused.
JAVA Code:
The errors are shown as: line 57 else without if else if (event.getSource() == JButton("Clear")) { line 74 illegal start of expression & ; expected I did not think you needed a ; Please help. Last edited by admin II : 27-Apr-2008 at 18:06.
Reason: Changed [QUOTE] to [JAVA]
|
|
#2
|
|||
|
|||
Re: Errors in CompilingJAVA Code:
|
|
#3
|
||||
|
||||
Re: Errors in CompilingThere are MANY other issues than just what is needed to clear those first couple of compile errors...
1. Note here: JAVA Code:
3. "Illegal start of expression", comes from the point where a function is being defined INSIDE of another function. You are defining setResultValue(), inside the body of function actionPerformed(). There will be more errors, but clear these up first, and post again if help is still needed. It appears that this Calculator2 class is a copy-paste clone of class Calculator? (Calculator is defined as an inner class [where the main() is defined], so I'm not sure what the purpose for it is??) __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compiling errors in binary tree code | rahul_2550 | C Programming Language | 1 | 22-Mar-2007 15:07 |
| errors when compiling 'line example' from help > index | abakws | C++ Forum | 9 | 09-Nov-2006 03:40 |
| linker errors while compiling sqlite3 with a program | ryver | C Programming Language | 5 | 17-Aug-2006 00:38 |
| In Need of Some Serious Help...compiling errors [C++] | needcishelp | C++ Forum | 25 | 21-Dec-2005 01:26 |
| Compiling Errors | ToddSAFM | C++ Forum | 22 | 18-Dec-2004 11:42 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The