Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Java 05: While & For Loops Statements

Loading...

Sign in or sign up now!
24,142
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 13, 2007

Java 1.6 with NetBeans 5.5.1 beta

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Top Comments

  • Superb. Nice to find some really compact and easy to understand videos on Loops!

    Nice one.

  • VERY good m8 it help me a lot thanks

see all

All Comments (14)

Sign In or Sign Up now to post a comment!
  • 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

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more