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

  Рет қаралды 478,463

Codecourse

Codecourse

Күн бұрын

Пікірлер: 212
@jawadnoor2298
@jawadnoor2298 4 жыл бұрын
0:18 While Loop 5:25 for loop 8:36 do while loop
@Naderade
@Naderade 8 жыл бұрын
Thank you you are so much better than my teacher
@edwardyen2144
@edwardyen2144 7 жыл бұрын
Duh
@nawazkhan4636
@nawazkhan4636 6 жыл бұрын
Your teacher
@micosarines636
@micosarines636 4 жыл бұрын
This is so fucking true haha
@itumeleng_seema
@itumeleng_seema 3 жыл бұрын
Couldn't have said it better
@TonTonTheWonton
@TonTonTheWonton 3 жыл бұрын
Imagine if your teacher sees this lmao
@yolog37
@yolog37 5 жыл бұрын
That is the most straightforward explanation I've come across so far!!! Thank you very much! Spot on!
@axon589
@axon589 8 жыл бұрын
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.
@JoeAsaad
@JoeAsaad 5 жыл бұрын
Thanking you is not enough. For the first time, I was able to understand loops and understand what they do. You are the best.
@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
@zaheerimad5844
@zaheerimad5844 3 жыл бұрын
bro some next level teaching
@Dowggdee
@Dowggdee 9 жыл бұрын
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
@sharanpreet5559
@sharanpreet5559 7 жыл бұрын
Explained with uttermost simplicity.
@chuckisrailov2773
@chuckisrailov2773 6 жыл бұрын
This video helped me a lot, thanks ! Whoever struggling with understanding of while loops just watch this video
@humphreychan6382
@humphreychan6382 6 жыл бұрын
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
@erikalmadrid4779
@erikalmadrid4779 3 жыл бұрын
My guy, let me just say you are amazing
@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!
@solarwolfgaming3293
@solarwolfgaming3293 8 жыл бұрын
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!
@elicubillo313
@elicubillo313 2 жыл бұрын
ive been confused on loops for a while now and this helped out so much. thanks
@mauromortier7808
@mauromortier7808 5 жыл бұрын
Came for the do while loop stayed for the whole video bcs damn that’s such a good explanation!
@argjendsejfullai8304
@argjendsejfullai8304 4 жыл бұрын
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
@electric336
@electric336 8 жыл бұрын
This video helped a lot!! Thanks, dude!!
@Desiqnify
@Desiqnify 8 жыл бұрын
Very straight to the point, thank you
@intuitiveclass6401
@intuitiveclass6401 3 жыл бұрын
holy shit you made that a lot simpler to understand
@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
@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
@andreaaldrich4046
@andreaaldrich4046 7 жыл бұрын
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.
@ulrichkruger
@ulrichkruger 9 жыл бұрын
Here is a tip! type in 'sout' and hit tab! This will give you System.out.println();
@publicstaticvoid1
@publicstaticvoid1 9 жыл бұрын
+Julien Dhouti yes. use netbeans, its supported by oracle. and eclipse is durst
@dakbal-1jum
@dakbal-1jum 7 жыл бұрын
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 жыл бұрын
omg thank you lmao
@louiev228
@louiev228 2 ай бұрын
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.
@bhavanakprasad1415
@bhavanakprasad1415 9 жыл бұрын
its jst took minutes to understand... thanks for it
@tylerfromoklahoma
@tylerfromoklahoma 7 жыл бұрын
Great video, I like that you provide examples after you make changes to the code. This helps a heap
@rolandlundall133
@rolandlundall133 3 жыл бұрын
Thank you for your easy to understand explaination. I don't know why others don't explain things much easier.
@lifewithbreion1392
@lifewithbreion1392 7 жыл бұрын
GREAT instruction...you have an easy to understand voice and you explain with detail.subscribed👍
@braveknight283
@braveknight283 9 жыл бұрын
Great work. I have a Java final tomorrow and I am using your videos to review. Thank you for the help!
@basilioreyes2434
@basilioreyes2434 4 жыл бұрын
what a helpful vid from 2014!!!! thank you i have finally solved my problem
@thetechmaster6510
@thetechmaster6510 5 жыл бұрын
Nice video, summed up everything my teacher taught me for 2 weeks in 10 min
@psyberfunk
@psyberfunk 4 жыл бұрын
This helped me so much. You explain things much much clearer than my instructors. Thank you!
@adindapujirahmawati1909
@adindapujirahmawati1909 5 жыл бұрын
This is very helpful, thank you very much. Now I get the better understanding about loop function.
@deemuotori
@deemuotori 5 жыл бұрын
this video saved me in computer class!!! thank you very much!!!
@somosuddin5743
@somosuddin5743 5 жыл бұрын
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 ❤️
@emzzz2370
@emzzz2370 Жыл бұрын
Great video and explanation! I had some Java basics things mixed up, but now I have them all sorted out! Thank you!
@oniimoose7100
@oniimoose7100 Жыл бұрын
in 2023 is wild
@nootnootmofos7415
@nootnootmofos7415 10 ай бұрын
@@oniimoose7100 2024
@Bob-wm6jn
@Bob-wm6jn 2 жыл бұрын
0:26 While loop 5:26 For Loop
@benjamintoledo5043
@benjamintoledo5043 4 жыл бұрын
ive been struggling on how to read these loops thankx a lot man!!!!!
@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
@yaoyaoxiong2371
@yaoyaoxiong2371 5 жыл бұрын
why you calling him brother?
@darkmenoxow7332
@darkmenoxow7332 5 жыл бұрын
Thanks, great video! Your explainations are easy to understand.
@rendesal
@rendesal 3 жыл бұрын
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.
@hprivij
@hprivij 7 жыл бұрын
This vedio hepled me get the knack of it..pretty clear and good.
@dianabookmadness
@dianabookmadness 3 жыл бұрын
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
@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?
@divyanshswami4508
@divyanshswami4508 8 жыл бұрын
Excellent! this helped me a lot for my exam . Thank you very much.
@Dyar2
@Dyar2 5 жыл бұрын
Bhavna Swami me too
@lorenportilhorampinelli1283
@lorenportilhorampinelli1283 10 ай бұрын
Thank you for such a great job! The way you explained this made perfect sense!
@ohmyboytroy
@ohmyboytroy 5 жыл бұрын
How can I find a sum of the numbers that were input on to the screen while using a loop
@rainmomo3971
@rainmomo3971 7 жыл бұрын
Thank you for sharing !! excellent ! could u please explain if use boolean to control the loop ?
@yt_bharat
@yt_bharat 5 жыл бұрын
Excellent explanation. I ve now got the concept of control statements. Thanks
@iftekmahmud
@iftekmahmud 7 жыл бұрын
Thank you Sir! Couldn't get any simpler.
@Desiqnify
@Desiqnify 8 жыл бұрын
Hi i was wondering is it possible to have multiple condition within a for loop? I've tried using the && symbol to have 2 statements but i get an error
@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.
@4nukeman2
@4nukeman2 5 жыл бұрын
Thanks, best explanation yet!
@Broadway1982
@Broadway1982 8 жыл бұрын
awesome!! Best break down on how loops work... Thanks!
@MasterGamer-uc2ns
@MasterGamer-uc2ns 6 жыл бұрын
Omg I got 65/70 for my IP test omg thank youuuuu
@lunarskyye2680
@lunarskyye2680 8 жыл бұрын
Quick & to the point. Thanks a million bro.
@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
@18biohazard
@18biohazard 3 жыл бұрын
Very helpful thank you!!!😭
@kaustubhgupta4619
@kaustubhgupta4619 6 жыл бұрын
Thanks a lot !!!!!!! if it weren't for you I would have flunked my java test
@misbahelmiroj8896
@misbahelmiroj8896 7 жыл бұрын
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?
@misbahelmiroj8896
@misbahelmiroj8896 7 жыл бұрын
sorry, I am newbe in netbeans
@vacademata
@vacademata 8 жыл бұрын
if my int a = 1 ...how can I fiind out witch numbers can be divided by 2 ? ...like in your exemple when for (int a = 1; a < 100; a++) ...
@hamadler
@hamadler 8 жыл бұрын
The numbers that can be divided by 2 are called even numbers say u have a number in a variable called aVar, for that number to be even aVar%2 has to equal 0 , in other words if (aVar%2==0); that number can be divided by 2 and hence is an even number, Hope this helped
@vacademata
@vacademata 8 жыл бұрын
It makes sens now...thank you
@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
@jsonzgaming5212
@jsonzgaming5212 4 жыл бұрын
Hello can you help me out how to use if condition like 0123456789 and the Output is 123 567 89? Thank you much I really need it
@vance5564
@vance5564 Ай бұрын
buddy is goated
@jayveeempleo3731
@jayveeempleo3731 6 жыл бұрын
Wow. Keep uploading videos and you will assure my likes
@Mosha1410
@Mosha1410 7 жыл бұрын
How do you stop that do loop?
@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.
@sandisiwencube2909
@sandisiwencube2909 3 жыл бұрын
Thank you so much! Your explanation was straight forward and easy to follow.
@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
@joeljacob4000
@joeljacob4000 6 жыл бұрын
Thank you this has helped me a lot
@Prashant_Das
@Prashant_Das 6 жыл бұрын
Thank you Perfect learning video
@abdel-ilahabdallah2012
@abdel-ilahabdallah2012 6 жыл бұрын
Papa bless you , good soul
@garrettpoist3191
@garrettpoist3191 8 жыл бұрын
Thanks, helped me out a lot.
@rimaborah5347
@rimaborah5347 5 жыл бұрын
But what are increment decrement statements
@manuelvillegas9171
@manuelvillegas9171 6 жыл бұрын
Amazing. Straight to the point!
@badguy66626
@badguy66626 7 жыл бұрын
how do u do or?
@johnmark5819
@johnmark5819 4 жыл бұрын
how to loop to ascending?
@dabbagh6734
@dabbagh6734 6 жыл бұрын
Who else wrote a
@allenjoshua7692
@allenjoshua7692 5 жыл бұрын
ME HAHAHHAHAHHAA
@randylandry5332
@randylandry5332 9 жыл бұрын
Any loop written with a for statement can be written with a while statement? true or false
@daisyrani6021
@daisyrani6021 6 жыл бұрын
Thanks very useful for my exams.
@kuyaj7469
@kuyaj7469 4 жыл бұрын
how about starting negative?
@JoshGiddeyEnjoyer157
@JoshGiddeyEnjoyer157 Жыл бұрын
Which loop is the easiest?
@realindiansniper
@realindiansniper 2 жыл бұрын
Thank you for the simple explanation.
@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
@Jad4life
@Jad4life 3 жыл бұрын
great explanation mate!! keep up the good work
@imaginartist2139
@imaginartist2139 3 жыл бұрын
You think while() is a construstor?
@gusfalk
@gusfalk 2 жыл бұрын
Can someone help me with this: Write a while-loop that prints x plus signs on the same line. public static void runLoop(int x){ // complete the loop below while(){ System.out.print(); } }
@jeremyabogado9569
@jeremyabogado9569 4 жыл бұрын
thank you for this video. it's very cleared and detailed .
@davidelijahsackitey6193
@davidelijahsackitey6193 5 жыл бұрын
Please I need more loops and how to use the in a program
@yasminhusain3810
@yasminhusain3810 6 жыл бұрын
u r really good, thanks. fast and clear please make more videos
@estevanwhite7593
@estevanwhite7593 4 жыл бұрын
Super helpful my guy. Keep it up 👍🏽
@kitmagnase8905
@kitmagnase8905 5 жыл бұрын
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 KZbin videos? Following online course? I know someone is going to say to create small projects but what projects would you recommend?
@RemixPicture
@RemixPicture 10 жыл бұрын
The final code: package tutorials; public class Main { public static void main(String[] args) { int a = 10; do { System.out.println("Hello world!"); a++; } while (a < 10); // for (a = 0; a < 100; a += 2) { // System.out.println(a); // } // while(a < 100){ // System.out.println(a); // a++; // } // System.out.println("Loop finished."); } }
@evilevan9687
@evilevan9687 Жыл бұрын
Welcome to the sick video!
Java For Beginners: Arrays (8/10)
11:00
Codecourse
Рет қаралды 67 М.
For Loop Pattern Program In Java #25
15:49
Alex Lee
Рет қаралды 171 М.
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 52 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 689 М.
While loops in Python are easy ♾️
6:58
Bro Code
Рет қаралды 434 М.
#17 While Loop in Java
12:28
Telusko
Рет қаралды 155 М.
Learn Java in One Video - 15-minute Crash Course
14:54
Coding with John
Рет қаралды 781 М.
Java For Beginners: Boolean Operators & IF Statement (4/10)
10:30
Learn JavaScript WHILE LOOPS in 8 minutes! 🔁
8:12
Bro Code
Рет қаралды 37 М.
for and while Loops
6:49
Neso Academy
Рет қаралды 761 М.
Learn Java in 14 Minutes (seriously)
14:00
Alex Lee
Рет қаралды 4,9 МЛН
For loops in Python are easy 🔁
5:06
Bro Code
Рет қаралды 408 М.
Nested For Loop In Java Tutorial #24
10:02
Alex Lee
Рет қаралды 275 М.
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 52 МЛН