17th Mar 2018, 3:25 PM
Devansh Gupta
Devansh Gupta - avatar
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
17th Mar 2018, 3:38 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 5
Check for extra braces. { }
17th Mar 2018, 3:28 PM
Hatsy Rei
Hatsy Rei - avatar
+ 3
thanks it helped
17th Mar 2018, 3:39 PM
Devansh Gupta
Devansh Gupta - avatar
+ 2
Remove the parentheses {} before the main method . That is causing the error. Here is the correct one.
17th Mar 2018, 3:28 PM
Aaron Stone
Aaron Stone - avatar
17th Mar 2018, 3:29 PM
Aaron Stone
Aaron Stone - avatar
+ 2
did but nothing happened
17th Mar 2018, 3:30 PM
Devansh Gupta
Devansh Gupta - avatar
+ 2
wow Aaron how you did it?
17th Mar 2018, 3:31 PM
Devansh Gupta
Devansh Gupta - avatar
+ 2
hi Gaurav again!!
17th Mar 2018, 3:39 PM
Devansh Gupta
Devansh Gupta - avatar
+ 2
Just removed the extra braces before the main method.
17th Mar 2018, 3:49 PM
Aaron Stone
Aaron Stone - avatar
0
remove last } that is in line 22
17th Mar 2018, 3:57 PM
Raziul Islam
Raziul Islam - avatar