+ 2
What is wrong with this code?
10 Answers
+ 16
just delete a } from last
//remember , methods come in a class , U can call a method from another method[can make a method call] ... but can't declare it inside a method[method declarartion]
//hope it helps & remove errors of this kind in future
+ 5
Check for extra braces. { }
+ 3
thanks it helped
+ 2
Remove the parentheses {} before the main method . That is causing the error.
Here is the correct one.
+ 2
did but nothing happened
+ 2
wow Aaron how you did it?
+ 2
hi Gaurav again!!
+ 2
Just removed the extra braces before the main method.
0
remove last } that is in line 22