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

Unable to execute?  RSS feed

 
Tim Hoang
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written just a simple code just for fun, but for some reason it won't output the data I wanted.
It should display Testing: ten times, but all i get is lag from my computer without no output from eclipse.


 
fred rosenberger
lowercase baba
Bartender
Posts: 12542
48
Chrome Java Linux
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
look VERY CLOSELY at line 8. Is there something extra there?
 
Rob Spoor
Sheriff
Posts: 21090
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eclipse can give you a warning about this. It's called an empty statement, and it's usually a typo or other kind of error.
 
Campbell Ritchie
Marshal
Posts: 55698
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you haven't worked it out, I shall point out two things
  • 1: It's a very common mistake.
  • 2: count the semicolons.
  •  
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!