Java 05: While & For Loops Statements
Top Comments
All Comments (14)
-
you forgot max = ++max hehe
-
@matero99 dumbass... look, String hello = "Hello World"; is what hello is, so if he tells it to print the string hello, it prints what the string hello is, which is "Hello World"...
-
you are a star thank you bra
-
11110010 10001001 11001101
-
how come your program ran without you writing hello in the form "hello"? are you using some kind of automated complier?
-
will you please make a GUI while loop .. and a tutorial also for that..
-
of course it does that, because he didnt make it max < 10 which means that it would stop adding when it was 10 but <= means that if it is or is less then 10 it will add which makes it 11 times.
-
that's part of the c, the c++, and java, all the numbers begin in 0, in the arrays is the same, begin in x[0], not in x[1], if you wanna just 10 times just type this: for(max=0;max<10;max++)
-
sorry but just correcting u in the for statement when u did max<=10
when max=0
it prints it out 11 times
probabally u just made a mistake because it starts from 0-10 thats actually 11 times
Superb. Nice to find some really compact and easy to understand videos on Loops!
Nice one.
sallyann22 4 years ago 4
VERY good m8 it help me a lot thanks
bolivarknight 4 years ago