• Post Reply Bookmark Topic Watch Topic
  • New Topic

Correct declaration of method  RSS feed

 
Derryl Larson
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,
can anybody help me? Netbeans tells me it's an illegal start of expression during the initialisation of the interactWithUser method.
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't define one method inside of another. The declaration of the interactWithUser method is inside the main method.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!