Biniman Idugboe wrote:Thanks a lot man! You have just relieved me. I can go to sleep now. It far past bedtime in my region.
No worries bro, one time I was stuck on my application for a whole 5 days and no one could figure out my issue, turned out I was just missing a zero somewhere and I discovered it when I had decided to scrap the whole thing and do it something else. It is usually the small things that are the issue. Look for those
The condition for the loop to keep going is "i" should be less than 1 and its value has been set to 10 which is greater than 1
One of options. Another option is, that OP might wanted to print out numbers starting from 10 and going down to 1 or so. If that is the case, then for the boolean condition other operator needs to be used.
Liutauras Vilda wrote:Probably best would be if OP would describe what app supposed to be doing. Not describing problem clearly, I could say - this loop works great as it does exactly what it supposed to be doing.
I can tell you are a pro dev from your posts, however, me and him are both noob programmers still learning. So we understand each other, my friend
I am assuming you wanted to print from 10 down to 2. In that case, what your loop is essentially saying is i = 10, then i is < 1. This will never run because 10 is not less than 1. Change "i < 1;" to "i > 1;" since i is 10, an 10 is greater than 1. And welcome to the Java world