| Author |
Syntax error on token(s), misplaced construct(s)
|
Sanjana Sharma
Greenhorn
Joined: Jan 08, 2011
Posts: 29
|
|
compiling the above code throws the following compilation error.
Syntax error on token(s), misplaced construct(s)
|
 |
Matthew Brown
Bartender
Joined: Apr 06, 2010
Posts: 3796
|
|
|
You've got two else clauses. The first should be else if.
|
 |
Sanjana Sharma
Greenhorn
Joined: Jan 08, 2011
Posts: 29
|
|
Thanks
|
 |
mike ryan
Ranch Hand
Joined: Aug 08, 2010
Posts: 210
|
|
Hi Sanjana,
You have two else statements. If you correct that your code will compile and run;)
|
 |
 |
|
|
subject: Syntax error on token(s), misplaced construct(s)
|
|
|