• Post Reply Bookmark Topic Watch Topic
  • New Topic

Illegal State of Expression Error  RSS feed

 
Greenhorn
Posts: 18
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why is the program showing illegal state of expression?

 
Marshal
Posts: 56605
172
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please show us which line it is on. We can only help you if we know the full details.
I had to compile the code myself. Hint: operators shou‍ld usually be surrounded by spaces, but must not contain intervening spaces.
 
Akshit dhar
Greenhorn
Posts: 18
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Campbell Ritchie. The space was giving the error.
 
Campbell Ritchie
Marshal
Posts: 56605
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's a pleasure

You appear to have posted the same thing twice, but I deleted it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!