Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

'identifier' & 'illegal start of type' messages???

 
James Brooks
Gunslinger
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!

Can someone please tell me why I'm getting 'illegal start of type' and '<identifier> expected' error messaged for the for-loop and the last message dialog for the below code:

Thanks!

-Patrick

 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that you are putting code in the class block {} when you really need to put it in a method block.

Something like this:

[ April 08, 2007: Message edited by: pete stein ]
 
James Brooks
Gunslinger
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops, yeah, silly mistake... Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic