Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

illegal start of expression

 
Varuna Seneviratna
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


"illegal start of expression" What causes this error.I can not figure out.I changed even the the combination of relational operators <== and >==
I want a integer returned between 1 and 6
Varuna
 
Leroy J Brown
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For starters the syntax for your relational operators is wrong. Try using

and


Should patch you up quick.
 
Varuna Seneviratna
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tristan!
I was stressed out I could even figure out that


Varuna
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic