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

Just a Question

 
Michael Hubele
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was playing around with netbeans so I was writting some code and I ran into a question. So I thought might as well ask the you people why this happens.



So there is my code but when I compile and run my program it does the loop but then stops after that and does not go and do the for loop. Why is that?

[Edit by mw: Repaired code tags.]
[ December 19, 2005: Message edited by: marc weber ]
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Michael Hubele:
... it does the loop but then stops after that and does not go and do the for loop. Why is that? ...

Because in your for loop, you have a ">" where you seem to have intended a "<".
 
Michael Hubele
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ah yes I forgot to change that. I orignal had it at 11 so the loop would go on forever(no realy point to it) but it kept crashing netbeans. So I changed it. I probably would have never noticed it lol.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic