aspose file tools*
The moose likes Beginning Java and the fly likes Just a Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Just a Question" Watch "Just a Question" New topic
Author

Just a Question

Michael Hubele
Ranch Hand

Joined: Dec 17, 2005
Posts: 182
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

Joined: Aug 31, 2004
Posts: 11343

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 "<".


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Michael Hubele
Ranch Hand

Joined: Dec 17, 2005
Posts: 182
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Just a Question