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

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

Codecourse

10 лет назад

465,711 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@emzzz2370
@emzzz2370 - 20.12.2023 10:28

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

Ответить
@kevinandgame4932
@kevinandgame4932 - 21.11.2023 17:53

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

Ответить
@rana9136
@rana9136 - 24.10.2023 17:54

Thank u thank u thank uuuuuu

Ответить
@evilevan9687
@evilevan9687 - 20.09.2023 05:28

Welcome to the sick video!

Ответить
@MrDe-yz3ff
@MrDe-yz3ff - 07.03.2023 19:56

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

Ответить
@tomiloreosikoya
@tomiloreosikoya - 05.03.2023 18:42

Thank you so much, you just simplified it for me

Ответить
@JoshGiddeyEnjoyer157
@JoshGiddeyEnjoyer157 - 10.01.2023 07:31

Which loop is the easiest?

Ответить
@elicubillo313
@elicubillo313 - 14.11.2022 00:20

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

Ответить
@kirbthwomper219
@kirbthwomper219 - 11.11.2022 03:39

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

Ответить
@gusfalk
@gusfalk - 10.11.2022 20:44

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();
}
}

Ответить
@IndianSniper25
@IndianSniper25 - 04.11.2022 07:06

Thank you for the simple explanation.

Ответить
@eanternet
@eanternet - 26.10.2022 04:43

Thank you so much

Ответить
@kerrikoala
@kerrikoala - 11.05.2022 11:27

Thank you :)

Ответить
@Leo-jr5vk
@Leo-jr5vk - 03.04.2022 01:44

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

Ответить
@MHF-go9sd
@MHF-go9sd - 05.02.2022 05:29

Consice and usefull, thank you

Ответить
@hawram3523
@hawram3523 - 09.01.2022 06:51

this is so random but he kinda sounds like felix from stray kids :')

Ответить
@rendesal
@rendesal - 18.12.2021 13:02

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.

Ответить
@daddytbag3861
@daddytbag3861 - 13.12.2021 13:40

great explanation mate!! keep up the good work

Ответить
@rustylopez2878
@rustylopez2878 - 13.12.2021 08:57

Thank you Sir!

Ответить
@dianabookmadness
@dianabookmadness - 18.11.2021 23:34

Fantastic. thank you

Ответить
@erikalmadrid4779
@erikalmadrid4779 - 06.11.2021 02:27

My guy, let me just say you are amazing

Ответить
@intuitiveclass6401
@intuitiveclass6401 - 05.11.2021 00:04

holy shit you made that a lot simpler to understand

Ответить
@khalilabdelkarim9058
@khalilabdelkarim9058 - 27.10.2021 00:44

Well explained, Thank you!

Ответить
@regielmanaongsong144
@regielmanaongsong144 - 10.10.2021 17:34

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

Ответить
@zaheerimad5844
@zaheerimad5844 - 01.10.2021 20:43

bro some next level teaching

Ответить
@sandisiwencube2909
@sandisiwencube2909 - 30.07.2021 21:31

Thank you so much!

Your explanation was straight forward and easy to follow.

Ответить
@imaginartist2139
@imaginartist2139 - 31.05.2021 17:24

You think while() is a construstor?

Ответить
@a.y_.
@a.y_. - 15.05.2021 16:58

very helpful

Ответить
@ARAR-dl9zp
@ARAR-dl9zp - 04.05.2021 17:20

thankyouuusooomuch

Ответить
@expadenso6181
@expadenso6181 - 13.04.2021 20:35

My fucking savior

Ответить
@nayahejazi7668
@nayahejazi7668 - 07.04.2021 00:13

Thank you! very helpful and clear to understand :)

Ответить
@18biohazard
@18biohazard - 26.03.2021 20:59

Very helpful thank you!!!😭

Ответить
@rolandlundall133
@rolandlundall133 - 22.01.2021 16:48

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

Ответить
@argjendsejfullai8304
@argjendsejfullai8304 - 03.01.2021 18:29

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 <3

Ответить
@benjamintoledo5043
@benjamintoledo5043 - 22.12.2020 22:11

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

Ответить
@basilioreyes2434
@basilioreyes2434 - 29.11.2020 03:00

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

Ответить
@psyberfunk
@psyberfunk - 25.11.2020 01:49

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

Ответить
@Stardoll0tutorials
@Stardoll0tutorials - 04.11.2020 01:10

hi i´m here cuz my german proffessor in my uni is fucking shit

Ответить
@deguzmanjoaquinm.7065
@deguzmanjoaquinm.7065 - 23.10.2020 07:25

my 3 hour class makes it easier with an 11 minute video

Ответить
@lukaradulovic8704
@lukaradulovic8704 - 23.10.2020 04:35

hello

Ответить
@kuyaj7469
@kuyaj7469 - 18.10.2020 17:33

how about starting negative?

Ответить
@micosarines636
@micosarines636 - 25.09.2020 17:56

thnaks

Ответить
@Snatcher_Catcher
@Snatcher_Catcher - 17.09.2020 07:03

wtf is wrong with this? i thought i play a bit with it just to understand better and ofc im fkn dumb it already crashed on me

int a = 10;


do {

} while (a <10);

System.out.println("Loop finished @ " + a);


}


System.out.println ( "finished");

Ответить
@jsonzgaming5212
@jsonzgaming5212 - 04.09.2020 12:43

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

Ответить