Java For Beginners: While, Do While & For Loops (7/10)

Поділитися
Вставка
  • Опубліковано 27 лис 2024

КОМЕНТАРІ • 212

  • @jawadnoor2298
    @jawadnoor2298 4 роки тому +48

    0:18 While Loop
    5:25 for loop
    8:36 do while loop

  • @Naderade
    @Naderade 8 років тому +265

    Thank you you are so much better than my teacher

  • @Leo-jr5vk
    @Leo-jr5vk 2 роки тому

    its 2022 and i searched java loop explained
    its amazing that its still not outdated and java can still be used the same way...
    and thank you for explanation, it really makes me understand now

  • @axon589
    @axon589 8 років тому +48

    Wow this is an amazing video. I had a really hard time understanding the difference between while and do while and now, because of your video, I do.

  • @yolog37
    @yolog37 5 років тому +56

    That is the most straightforward explanation I've come across so far!!! Thank you very much! Spot on!

  • @JoeAsaad
    @JoeAsaad 5 років тому +1

    Thanking you is not enough. For the first time, I was able to understand loops and understand what they do. You are the best.

  • @chuckisrailov2773
    @chuckisrailov2773 6 років тому +1

    This video helped me a lot, thanks ! Whoever struggling with understanding of while loops just watch this video

  • @Dowggdee
    @Dowggdee 9 років тому +95

    whoa, he's good hey...... he basically covered all three loop functions within a time span of 11 minutes.

    • @cadence1108
      @cadence1108 5 років тому

      thats why he named his own channel 'code' lol

  • @humphreychan6382
    @humphreychan6382 6 років тому +4

    you spend just 11 mins to cover the entire 50 mins lecture and actually make me understand what's going on while my 50mins lecture rises me more question marks in my brain

  • @sharanpreet5559
    @sharanpreet5559 7 років тому +4

    Explained with uttermost simplicity.

  • @solarwolfgaming3293
    @solarwolfgaming3293 8 років тому +6

    Wow I'm wanting to make a text adventure game for some friends and I've only been doing java for a few weeks in class and we haven't gone over this stuff yet and know I'll know all of it for when we do. Great tutorial!

  • @dontbemadsunshine
    @dontbemadsunshine 7 років тому

    im at uni studying computer and network tech, im studying java for it and i have to say.. at first i hated it! but now ive started to learn more about it and be able to solve simple tasks, its such a great programming language!

  • @zaheerimad5844
    @zaheerimad5844 3 роки тому +1

    bro some next level teaching

  • @kevinandgame4932
    @kevinandgame4932 Рік тому

    Yeah I am gonna say the same thing as the first comment. You are a million times better than my teacher. Thank you

  • @argjendsejfullai8304
    @argjendsejfullai8304 3 роки тому +5

    Beautiful explanation , man we are really glad that someone is teaching us for free , and all we can give you is a subscribe , like , comment and a thank you

  • @elicubillo313
    @elicubillo313 2 роки тому +1

    ive been confused on loops for a while now and this helped out so much. thanks

  • @ulrichkruger
    @ulrichkruger 9 років тому +39

    Here is a tip! type in 'sout' and hit tab! This will give you System.out.println();

    • @publicstaticvoid1
      @publicstaticvoid1 9 років тому +1

      +Julien Dhouti yes. use netbeans, its supported by oracle. and eclipse is durst

    • @dakbal-1jum
      @dakbal-1jum 7 років тому +3

      For eclipse, type in sysout and press control+space. (This should work for both windows and mac, but im not sure because I use mac)

    • @seaneire
      @seaneire 6 років тому

      This right here!!!

    • @primalkong619
      @primalkong619 5 років тому

      its sout ctrl space

    • @iconiccalico1875
      @iconiccalico1875 4 роки тому +1

      omg thank you lmao

  • @mauromortier7808
    @mauromortier7808 4 роки тому +3

    Came for the do while loop stayed for the whole video bcs damn that’s such a good explanation!

  • @andreaaldrich4046
    @andreaaldrich4046 7 років тому +18

    I got a D on my first Java exam because I struggle with these loops (and I had a fever). I went from 98% to 84%.
    I'm feeling kind of gutted and wondering if I should quit. Watching everyone leave the room before me sucked.
    I should have watched these videos first.

  • @regielmanaongsong144
    @regielmanaongsong144 3 роки тому

    thank you for this Sir, I do understand you more than my teacher because he only reads our module but to you you explained it well and I love the quality of your voice. Very Helpful

  • @Desiqnify
    @Desiqnify 8 років тому +19

    Very straight to the point, thank you

  • @erikalmadrid4779
    @erikalmadrid4779 3 роки тому +1

    My guy, let me just say you are amazing

  • @bhavanakprasad1415
    @bhavanakprasad1415 9 років тому +9

    its jst took minutes to understand... thanks for it

  • @electric336
    @electric336 8 років тому +35

    This video helped a lot!! Thanks, dude!!

  • @lifewithbreion1392
    @lifewithbreion1392 7 років тому +3

    GREAT instruction...you have an easy to understand voice and you explain with detail.subscribed👍

  • @Bob-wm6jn
    @Bob-wm6jn 2 роки тому

    0:26 While loop
    5:26 For Loop

  • @rolandlundall133
    @rolandlundall133 3 роки тому

    Thank you for your easy to understand explaination. I don't know why others don't explain things much easier.

  • @tylerfromoklahoma
    @tylerfromoklahoma 7 років тому

    Great video, I like that you provide examples after you make changes to the code. This helps a heap

  • @intuitiveclass6401
    @intuitiveclass6401 3 роки тому +1

    holy shit you made that a lot simpler to understand

  • @basilioreyes2434
    @basilioreyes2434 4 роки тому +1

    what a helpful vid from 2014!!!! thank you i have finally solved my problem

  • @adindapujirahmawati1909
    @adindapujirahmawati1909 5 років тому +2

    This is very helpful, thank you very much. Now I get the better understanding about loop function.

  • @thetechmaster6510
    @thetechmaster6510 5 років тому

    Nice video, summed up everything my teacher taught me for 2 weeks in 10 min

  • @braveknight283
    @braveknight283 9 років тому

    Great work. I have a Java final tomorrow and I am using your videos to review. Thank you for the help!

  • @louiev228
    @louiev228 Місяць тому

    I love the simple examples, my textbook has very complex examples for the loops, so it made it hard to understand how the syntax applied to the examples.

  • @psyberfunk
    @psyberfunk 4 роки тому

    This helped me so much. You explain things much much clearer than my instructors. Thank you!

  • @theabhay04
    @theabhay04 8 років тому

    one of the best video .. brother u explained it in the best way ..just in 10 mins u taught me loops ..thanks brother

  • @somosuddin5743
    @somosuddin5743 5 років тому +1

    Thank you. You made the loops very easy to understand.

  • @MrDe-yz3ff
    @MrDe-yz3ff Рік тому

    Two birds by one stone
    1) learning English❤️
    2) learning java language ❤️

  • @darkmenoxow7332
    @darkmenoxow7332 5 років тому +4

    Thanks, great video! Your explainations are easy to understand.

  • @hprivij
    @hprivij 7 років тому +2

    This vedio hepled me get the knack of it..pretty clear and good.

  • @dianabookmadness
    @dianabookmadness 3 роки тому +1

    Fantastic. thank you

  • @jairmartinez4903
    @jairmartinez4903 8 років тому

    Outstanding tutorial , very easy to understand the content thanks to your examples and good way of explaining the loops

  • @benjamintoledo5043
    @benjamintoledo5043 3 роки тому

    ive been struggling on how to read these loops thankx a lot man!!!!!

  • @rendesal
    @rendesal 2 роки тому

    found this good analogy on reddit:
    A bully is trying to beat you up. You execute a for loop.
    for(energy = 5; energy--; you have energy left) { try to punch him }
    That means you could punch him 5 times.
    Now you execute a while loop.
    while(bully is standing) note that this is a boolean! { punch bully; }
    [bully is standing] could be true for 1, 10, 100 whatever punches. Its probably modified somewhere outside the loop.
    A slightly more useful example :
    Say you made a game. The game loop has to either be running, or paused. Using a for loop dosent make sense.
    for(i=0; i < 10000; i++) { draw game stuff;}
    Voila, your game abruptly ends after a few seconds.
    while(running == true) { draw game stuff;}
    Now it goes on till running is set to false.
    edit : you can also guarantee whether a block is ran.
    do while(boolean) { stuff; } block may or may not run at least once.
    do{stuff} while (boolean) block guaranteed to run at least once.

  • @emzzz2370
    @emzzz2370 11 місяців тому

    Great video and explanation! I had some Java basics things mixed up, but now I have them all sorted out! Thank you!

  • @iftekmahmud
    @iftekmahmud 7 років тому +1

    Thank you Sir! Couldn't get any simpler.

  • @divyanshswami4508
    @divyanshswami4508 8 років тому +1

    Excellent! this helped me a lot for my exam . Thank you very much.

    • @Dyar2
      @Dyar2 5 років тому

      Bhavna Swami me too

  • @deemuotori
    @deemuotori 5 років тому +1

    this video saved me in computer class!!! thank you very much!!!

  • @lorenportilhorampinelli1283
    @lorenportilhorampinelli1283 9 місяців тому

    Thank you for such a great job! The way you explained this made perfect sense!

  • @yt_bharat
    @yt_bharat 5 років тому

    Excellent explanation. I ve now got the concept of control statements. Thanks

  • @calistan5431
    @calistan5431 5 років тому

    Very well explanation, I was able to completely follow along with this vs the video on my online course. Thank you very much for this

  • @4nukeman2
    @4nukeman2 5 років тому +1

    Thanks, best explanation yet!

  • @Broadway1982
    @Broadway1982 8 років тому

    awesome!! Best break down on how loops work... Thanks!

  • @kirbthwomper219
    @kirbthwomper219 2 роки тому

    Thank-you for explaining this in an easy to understand and concise manner! Will be checking out your other videos and subbing

  • @lunarskyye2680
    @lunarskyye2680 8 років тому

    Quick & to the point. Thanks a million bro.

  • @rainmomo3971
    @rainmomo3971 7 років тому +1

    Thank you for sharing !! excellent ! could u please explain if use boolean to control the loop ?

  • @sandisiwencube2909
    @sandisiwencube2909 3 роки тому

    Thank you so much!
    Your explanation was straight forward and easy to follow.

  • @tomiloreosikoya
    @tomiloreosikoya Рік тому

    Thank you so much, you just simplified it for me

  • @thauhirbenjamin3648
    @thauhirbenjamin3648 5 років тому

    Such an amazing video. Explanation was nice, simple and easy to understand

  • @abdel-ilahabdallah2012
    @abdel-ilahabdallah2012 6 років тому +1

    Papa bless you , good soul

  • @dabbagh6734
    @dabbagh6734 6 років тому +15

    Who else wrote a

  • @Prashant_Das
    @Prashant_Das 6 років тому +1

    Thank you
    Perfect learning video

  • @kaustubhgupta4619
    @kaustubhgupta4619 6 років тому

    Thanks a lot !!!!!!! if it weren't for you I would have flunked my java test

  • @MasterGamer-uc2ns
    @MasterGamer-uc2ns 6 років тому

    Omg I got 65/70 for my IP test omg thank youuuuu

  • @garrettpoist3191
    @garrettpoist3191 8 років тому +1

    Thanks, helped me out a lot.

  • @jayveeempleo3731
    @jayveeempleo3731 6 років тому +1

    Wow. Keep uploading videos and you will assure my likes

  • @joeljacob4000
    @joeljacob4000 6 років тому +1

    Thank you this has helped me a lot

  • @daisyrani6021
    @daisyrani6021 6 років тому

    Thanks very useful for my exams.

  • @realindiansniper
    @realindiansniper 2 роки тому

    Thank you for the simple explanation.

  • @18biohazard
    @18biohazard 3 роки тому +1

    Very helpful thank you!!!😭

  • @manuelvillegas9171
    @manuelvillegas9171 6 років тому

    Amazing. Straight to the point!

  • @mohammedabahussain4562
    @mohammedabahussain4562 8 років тому

    thank you very much, man. you have saved me.

  • @songming2462
    @songming2462 7 років тому

    Thank you very much. You explain everything that i couldn't understand hahaha you have my gratitude

  • @aldoorozco2047
    @aldoorozco2047 5 років тому +1

    great! thanks for your help!

  • @blenderremastered9959
    @blenderremastered9959 5 років тому

    i dont get the concept
    while(ture){
    Console.WriteLine(Hello);
    }
    What the expression you are checking for the true to be validated.

  • @jeremyabogado9569
    @jeremyabogado9569 4 роки тому

    thank you for this video. it's very cleared and detailed .

  • @Jad4life
    @Jad4life 3 роки тому

    great explanation mate!! keep up the good work

  • @estevanwhite7593
    @estevanwhite7593 4 роки тому

    Super helpful my guy. Keep it up 👍🏽

  • @yasminhusain3810
    @yasminhusain3810 6 років тому

    u r really good, thanks. fast and clear please make more videos

  • @kitmagnase8905
    @kitmagnase8905 4 роки тому

    Can I ask you something Sir :) what app do you use for java coding? :)
    Thanks in advance ♥️

  • @abedinist
    @abedinist 6 років тому

    Can somebody give me advice on how to learn Java? Is the best way to follow online projects though UA-cam videos? Following online course? I know someone is going to say to create small projects but what projects would you recommend?

  • @JoshGiddeyEnjoyer157
    @JoshGiddeyEnjoyer157 Рік тому

    Which loop is the easiest?

  • @akshanshgupta614
    @akshanshgupta614 6 років тому

    thanks helped me a lot loved this video

  • @joshguevara9570
    @joshguevara9570 6 років тому

    Really helped a lot dude thanks!

  • @MK-cl6po
    @MK-cl6po 7 років тому +1

    Amazing! Thanks a lot!

  • @khalilabdelkarim9058
    @khalilabdelkarim9058 3 роки тому

    Well explained, Thank you!

  • @Abay2112
    @Abay2112 7 років тому +1

    Thank you dude
    It is helpful video;

  • @nayahejazi7668
    @nayahejazi7668 3 роки тому

    Thank you! very helpful and clear to understand :)

  • @TheWboyy
    @TheWboyy 6 років тому

    what if you want to run a menu where you ask the user to enter a choice 1-4? what should you write inside of the brackets after while(?) if I want it to run over and over again...without setting it to true?

  • @dzung8432
    @dzung8432 8 років тому

    hello! my question is if I can use loop for command live move(), turned(), turnright() in java so I can't have to repeat those code when I want to move an object. If yes then how should I put those code together. thanks.

  • @ohmyboytroy
    @ohmyboytroy 5 років тому

    How can I find a sum of the numbers that were input on to the screen while using a loop

  • @imaginartist2139
    @imaginartist2139 3 роки тому

    You think while() is a construstor?

  • @misbahelmiroj8896
    @misbahelmiroj8896 7 років тому +1

    The display in my netbeans is not the same as the one shown on your video, can I start my source code from a different line with your video view?

  • @nyamzorignyamzo6754
    @nyamzorignyamzo6754 6 років тому

    Thank You
    I was stupid before watching this video

  • @lawandadib1438
    @lawandadib1438 4 роки тому

    thank you, you were very helpful

  • @ccss6620
    @ccss6620 5 років тому

    Subscribed! Very useful video!

  • @evilevan9687
    @evilevan9687 Рік тому

    Welcome to the sick video!

  • @user-ng4hn7gm4j
    @user-ng4hn7gm4j 7 років тому +1

    thank you very much !!

  • @davidelijahsackitey6193
    @davidelijahsackitey6193 5 років тому

    Please I need more loops and how to use the in a program

  • @funnnystuff21
    @funnnystuff21 5 років тому

    Very helpful video!