Nested For Loop In Java Tutorial #24

Nested For Loop In Java Tutorial #24

Alex Lee

5 лет назад

265,591 Просмотров

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


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

@amanikalua7836
@amanikalua7836 - 31.10.2023 16:53

Come on now it's Turquoise not Turqiouse. Get it together man

Ответить
@gavcx
@gavcx - 16.10.2023 08:37

I LOVE YOU ALEX !!!!

Ответить
@bran-chex7798
@bran-chex7798 - 06.10.2023 03:22

Best video opening ever!

Ответить
@FederikoKorili
@FederikoKorili - 01.10.2023 21:32

Dziękujemy za zrobienie tego i innych samouczków java!

Ответить
@lake1495
@lake1495 - 01.04.2023 23:49

This guy is literally teaching me Java more the paid courses very good explaining and makes everything simple a lot of people owe this guy honestly !!

Ответить
@sozzem8869
@sozzem8869 - 01.04.2023 18:14

Why does it say dead code in the second loop ( j ) for me ?

Ответить
@mahfozaabdelhai3010
@mahfozaabdelhai3010 - 03.02.2023 12:25

Literally your the best 🙏

Ответить
@echichoo
@echichoo - 02.02.2023 06:44

dude i have an exam on nested loops in like 1 hour and you just saved my ass thank you so much

Ответить
@Drdominguezc
@Drdominguezc - 11.01.2023 22:05

After watch so many videos, thanks to this one i finally understand it... Thank you!!!

Ответить
@mathiasmailund2195
@mathiasmailund2195 - 21.12.2022 10:50

Hey Alex :) In your 2d array - you write for (int i = 0; i < 2 ; i++) - why dont it go out of bounds, seeing that there are only 2 rows? 0 and 1

Ответить
@anaraydamir
@anaraydamir - 07.12.2022 18:05

everything is great .Thank you Alex! I think Length method would be more easier because sometimes we can have a lot of rows and column

Ответить
@enesbasaran821
@enesbasaran821 - 24.11.2022 12:02

I'm currently studying at a bootcamp to be a QA Engineer, and we have been learning these during Java Classes. I watch your videos to recap, and It's SUPER beneficial

Ответить
@thelolfrog
@thelolfrog - 30.10.2022 06:07

Nested For Loops: Stars Triangle. that's what I am doing:)

Ответить
@parthsarthi360
@parthsarthi360 - 14.10.2022 05:19

I just like how you use real world examples out there present in the world .... That clears concepts better

Ответить
@aaronwhite1426
@aaronwhite1426 - 23.09.2022 17:11

I'm using nested for loops for a class assignment. We are given a number of rows and columns. Rows are integers and columns are alphabetical. so the output should list something like this //row1 1A 1B 1C //row2 2A 2B 2C and so on. Pretty difficult for an online class but your videos help a lot. Thanks!

Ответить
@doryu1742
@doryu1742 - 09.09.2022 16:14

it's turquoise sir

Ответить
@kentspencermedez5607
@kentspencermedez5607 - 12.08.2022 17:26

thank youuu!!!! 🙇🏻‍♂️ now it's clear to me how nested for loops are for 2D arrays 😁 thanks a lot!!!! 🖤🖤🖤

Ответить
@Movingtoai
@Movingtoai - 19.06.2022 10:50

Wow thanks man 🙏

Ответить
@simon-yi6jv
@simon-yi6jv - 30.05.2022 11:17

what if i have different dimensions in 2d arrays ?

Ответить
@Slyferrr
@Slyferrr - 22.03.2022 13:21

Wow you deserve so much more views and subs !

Ответить
@techtrooper7563
@techtrooper7563 - 18.03.2022 12:15

QOTD : I have my fucking exam tomorrow and I am going to fail ✨✨

Ответить
@christopherapuan9968
@christopherapuan9968 - 17.03.2022 00:40

I am learning this in my programming I class.

Ответить
@icdubzz9907
@icdubzz9907 - 01.03.2022 06:16

Turquoise

Ответить
@ObamaWasWrong2023
@ObamaWasWrong2023 - 25.02.2022 23:54

I think it is much easier to explain this using regular array syntax instead of the curly braces shortcut

Ответить
@cubrain2413
@cubrain2413 - 21.02.2022 20:52

I use 'nested for loops' for number patterns in school. If you make a video on it, it'll be pretty cool!
Thanks for the great tutorials!

Ответить
@springbahor
@springbahor - 14.02.2022 18:16

Thank you Alex

Ответить
@blackTulpan
@blackTulpan - 03.02.2022 20:36

Thank you Alex! Cool video
and cool music!!!

Ответить
@RealAlexMoreton
@RealAlexMoreton - 28.01.2022 15:24

Cheers dude!

Ответить
@IrrelevantOracle
@IrrelevantOracle - 23.01.2022 13:29

Seeing this video for learning purpose. I appreciate your efforts. Keep it UP!!

Ответить
@leoulfitness
@leoulfitness - 15.01.2022 01:42

Thank you so much for your help! I was using this video to learn how to loop through 2D Arrays.

Ответить
@yeliza2350
@yeliza2350 - 12.01.2022 05:56

done 1

Ответить
@s_ky03
@s_ky03 - 19.12.2021 11:10

i have to make an 8x8 alternate 0's and 1's like
01010101
10101010...
for my final exam and its due tmr💀💀
this vid helped me clear up my understanding of nested loops but i still dont know what to do for the alternating thing🙃

Ответить
@iamsimran2402
@iamsimran2402 - 23.11.2021 17:54

it helped me with my assignment thanku

Ответить
@jawadalomari6397
@jawadalomari6397 - 20.11.2021 17:56

when I get a problem in a code, all I need is to check your channel. thank you

Ответить
@abscodes9587
@abscodes9587 - 15.11.2021 14:41

turquoise lol. you are a star Alex

Ответить
@edouardwilliam2883
@edouardwilliam2883 - 13.11.2021 16:24

Very helpful sir.....Sir can you do one where you have to calculate the average of 3 numbers using nested for loop using java coding

Ответить
@gregd4354
@gregd4354 - 12.11.2021 12:50

Thank you ,Alex!

Ответить
@shaikrazik8926
@shaikrazik8926 - 09.11.2021 20:00

What soft application to run the program please tell me anyone .my laptop windows 10

Ответить
@GalliadII
@GalliadII - 10.10.2021 00:17

why are nested loops always such a big deal in tutorials? I think they are more of a logical consequence of arrays and loops. you have an X-D array, so you need x loops to interate through it.

Ответить
@zanettd1037
@zanettd1037 - 25.09.2021 06:41

I just want to say: MARYY MEEEEEEE
no but seriously, thank you so much. you teach java very efficiently

Ответить
@musicforeveryone2024
@musicforeveryone2024 - 19.09.2021 15:23

You are the best Alex

Ответить
@NeedToDev
@NeedToDev - 17.08.2021 22:36

didn't work, got an error ;-;

pretty sure i did everything right though:

String[][] epicGamers = { {"Me", "You", "Him"},
{"Her", "It", "Them"}
};

for(int i = 0; 0 < 2; i++) {
for(int j = 0; j < 3; j++) {
System.out.println(epicGamers[i][j]);
}
}

Console says this: Me
You
Him
Her
It
Them
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2
at NestedForLoops.main(NestedForLoops.java:14)

Ответить
@bco-fm5qu
@bco-fm5qu - 13.08.2021 17:02

i x j = 50

Ответить
@Masteroftrancegirl
@Masteroftrancegirl - 05.08.2021 08:14

I am so dumb.

Ответить
@fredericoamigo
@fredericoamigo - 17.06.2021 11:25

Great vid! Super helpful! You are awesome!

Since you asked, I'm learning about nested for loops because they're one of the key concepts to get your head around if you want to reach a higher level of programming (in my opinion).

Furthermore, I would say that nested for loops and nested while loops open up a lot more possibilities - so thanks a lot for this very explanatory video!

Ответить
@LilLouay
@LilLouay - 15.06.2021 12:59

3 years later
I got you fam
It is spelled "Turquoise"
No need to thank me

Ответить
@vaibhavraj9c529
@vaibhavraj9c529 - 30.05.2021 12:53

turquoise

Ответить
@aryang1232
@aryang1232 - 26.05.2021 10:13

u r a legend

Ответить
@dreamwasdenied1782
@dreamwasdenied1782 - 26.05.2021 08:27

it was really really good thanx so much :D . that made my day

Ответить