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
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!
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
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.
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!
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
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
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.
Can somebody give me advice on how to learn Java? Is the best way to follow online projects though RU-vid videos? Following online course? I know someone is going to say to create small projects but what projects would you recommend?
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.
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(); } }
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?