|
|||||||
| Java (NOT JavaScript!) For discussion of the Java programming language as it applies to the Web ( Not JavaScript ). |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#2
|
||||
|
||||
|
As long as I know, for loops need to semicolons my friend, as they also need a condition to end the loop, you may use: (here the condition is i being smaller than max)
for (i=0;i<max;i+=3) {... or in case you don't know where to end, you should use a while loop: end_achieved=0; i=0; while(!end_echieved) { ... if(we_should_finish_this_loop) end_achieved=1; } |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|