Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

whats wrong with this method?  RSS feed

 
Seth Pink
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I keep getting this error :
E:\My Documents\test.java:9: illegal start of expression
 
Carlos Failde
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't put the menu() method inside the main method().

Another point, give your classes names beginning with a capital letter as it makes things easier if we all follow the same naming conventions.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!