• Post Reply Bookmark Topic Watch Topic
  • New Topic

please solve my query  RSS feed

 
jain manu jain
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey can anyone tell me wats the prob wid this code... i m getting error illegal start of expression at "public static void doShapes(GameShape shape)" method..???

 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have placed the method inside the main method. So end the main method with a closing brace and then add the method in the class body.

And please UseCodeTags
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John is right. I've modified your post to add the code tags he mentioned, and added some indentation as well. It's immediately obvious that you indeed have a method within a method, and that's not allowed in Java.
 
jain manu jain
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you John and Rob for giving time to my petty query.. i got it
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!