For Each Loop In Java Tutorial #39

  Рет қаралды 136,753

Alex Lee

Alex Lee

Күн бұрын

Пікірлер: 128
@alexlorenlee
@alexlorenlee Жыл бұрын
If you’re new to programming but want a career in tech, I HIGHLY RECOMMEND applying to one of Springboard’s online coding bootcamps (use code ALEXLEE for $1,000 off): bit.ly/3HX970h
@hanac5586
@hanac5586 3 жыл бұрын
You're seriously one of the best teachers ever. You actually explain stuff thoroughly yet still simply and demonstrate it properly. Perfect. My professors should learn from you ;^)
@VivianHuangSnowy
@VivianHuangSnowy 5 жыл бұрын
This line by line explanation is bless
@alameenadesina5170
@alameenadesina5170 4 жыл бұрын
This is guy is literally my new fav youtuber
@user-miyuna
@user-miyuna 4 жыл бұрын
👌👌👌
@deadpl55
@deadpl55 3 жыл бұрын
Human debugger
@ernestocabrera6976
@ernestocabrera6976 2 жыл бұрын
3 years later but thanks for the tutorial extremely helpful! Also, I just bought a 6-speed manual 2022 Veloster N, if you haven't pulled the trigger on any of the cars listed, the VN won't disappoint! Cheers, thanks again!
@dannehsg978
@dannehsg978 5 жыл бұрын
Alex I found out your channel almost 2 weeks ago and now I get thrilled to see your uploads plus I’m glad that you’ve gained 1k subs in just one week you’ll get that dream car soon
@alexlorenlee
@alexlorenlee 5 жыл бұрын
Danneh SG thanks :)
@riship7404
@riship7404 3 жыл бұрын
ur the pewdipie comment
@reachtrev69
@reachtrev69 2 жыл бұрын
Whenever my class explains something half ass or only just shows me something for the sake of learning something else I come here and it's all clear as day!
@marc4594
@marc4594 4 жыл бұрын
Thanks man :). I am trying to get deep in java these days, and when um stuck, i look for you :) you simplify things in a very good way. Keep it up!!
@abdeselamselami4532
@abdeselamselami4532 4 жыл бұрын
Thanks a lot Alex, for everyone the short-cut of System.out.println() is type sysout + hit buttons ctrl+space.
@patrickhastings3733
@patrickhastings3733 2 жыл бұрын
aha! this is a nice shortcut thanks!
@Aditya-Pathariya
@Aditya-Pathariya 3 жыл бұрын
Your tutorials are super simple and helpful Alex. I watch your tutorials now when I need help. Thank you.
@ahmedmustafa9154
@ahmedmustafa9154 5 ай бұрын
Can't thank you enough! The thorough breakdown made all the difference in understanding this.
@dname1802
@dname1802 Ай бұрын
Line-by-line explanation really helps. Thank you!
@omexiechama846
@omexiechama846 4 жыл бұрын
this is an impressive channel, we are getting it loud and clear
@youareiamurim
@youareiamurim 5 жыл бұрын
I agree with Dannesh! 😊 Your videos are exellent in their short and informative format! Keep it going!! 👍
@johnabeldoploso2017
@johnabeldoploso2017 11 ай бұрын
Hey thanks man you really helped me out in my finals and also i hope you get your dream car:>
@valdompinga
@valdompinga 3 жыл бұрын
men, i only used to watch portuguese youtubers in programming cuz its my main language, and i have to say this is the best english speakin Java youtuber i've seen this far!Congrats
@beraterkul7950
@beraterkul7950 11 ай бұрын
Very useful video , thanks!
@zionasohun
@zionasohun Жыл бұрын
WoW... I've struggled with this however I've just watched your vid... I think I finally have it down. Thank u.
@eunoia4679
@eunoia4679 3 жыл бұрын
This is the first video I watched from you. I hit subscribe and liked it halfway through the video because you explained every step of the way. As someone who has just started out, you teach better than my instructors at school.
@omarjanili288
@omarjanili288 4 жыл бұрын
I learned java like a year ago , almost forgot how to code, your video definitely helpful . I learned a lot from your video.
@jeeteshkumar11
@jeeteshkumar11 2 жыл бұрын
This is some premium content, appreciate your efforts Alex, keep it up.
@edmunch8946
@edmunch8946 3 жыл бұрын
THANKK YOUUU VERY MUCHHH, I have been working for this assignment for almost two nights and discovering the print and println difference
@martinmiciciday5235
@martinmiciciday5235 3 жыл бұрын
Yeah; thank you, it's very handy; and Also this is for nested loop: String[][] formlist = {{"Liam", "Olivia", "Emma" ,"Oliver" ,"Elijah"},{"Age", "Address", "lastName", "Password"}}; for(String names: formlist[0]) { for(String columns: formlist[1]) System.out.println(names + " , " + columns); }
@imaverygoodguy
@imaverygoodguy 5 жыл бұрын
You have the best java tutos on KZbin 😃😃😍😍😍💪🏼🇩🇿
@z1d2g3c4
@z1d2g3c4 2 жыл бұрын
if I search a programming subject, then Alex face shows up, that means im gonna have a great time understanding this subject
@juansalas9951
@juansalas9951 4 жыл бұрын
this dude coming in clutch
@draxanomourad141
@draxanomourad141 3 жыл бұрын
Alex you're just a hero! Honestly dude you're doing such an amazing work. Rooting for you!
@tii04
@tii04 2 жыл бұрын
Mahn I love how well you explain stuff that confuses me. Thank you for the line by line explanation. Bless up mahn!
@Amera-vt6xo
@Amera-vt6xo 4 жыл бұрын
"These are all cars i really want" He is cute
@Car00071
@Car00071 3 жыл бұрын
Great video! I like the quick and fluent explanation, and especially how you go line by line. Thanks!
@Drdominguezc
@Drdominguezc Жыл бұрын
You are amaizing, thank you!!!!!!
@minhhuynh2646
@minhhuynh2646 5 жыл бұрын
I learn a lot from your vids. Thank you
@Riveracakes
@Riveracakes Жыл бұрын
Seriously helping me get through my java courses! Thank you!!!!
@rachelpang4193
@rachelpang4193 4 жыл бұрын
Holy moly u save me everytime before exams
@av2678
@av2678 2 жыл бұрын
Wtf.. just replacing a forLoop by forEachLoop solved the problem ive been stuck on for hrs. Thanks a lot Alex!
@platafacturi8774
@platafacturi8774 Жыл бұрын
You are very good teacher!!!
@sourceOfJoy21
@sourceOfJoy21 4 жыл бұрын
Alex you're a legend man
@AK-iy9gl
@AK-iy9gl 5 жыл бұрын
Thanks for this Alex! Excellent vid. I thought I knew how it worked and to a certain extent I was right, but this really helped cement my understanding of it :D
@it4773
@it4773 4 жыл бұрын
Bro love form INDIA to you and your faimly
@deivasigamanimurugan4892
@deivasigamanimurugan4892 2 жыл бұрын
Simple and very easy to understand. Thanks Mr. Alex Lee. Fan from India. :)
@mellzylwalks2645
@mellzylwalks2645 4 жыл бұрын
Thanks for free tutorial 😍
@roshnidsouza5179
@roshnidsouza5179 3 жыл бұрын
finally this was the video i needed!!!!
@destiny4265
@destiny4265 4 жыл бұрын
omg thank you so much i needed this
@themodestai9603
@themodestai9603 4 жыл бұрын
69
@BenjaminEmm
@BenjaminEmm 4 жыл бұрын
Thank you so much. I've been sat here scratching my head and you've helped me a lot! What keyboard do you use?
@DANNYFIGDESIGNS
@DANNYFIGDESIGNS 3 жыл бұрын
You save me yet again! Thank you.
@gamersoul1098
@gamersoul1098 4 жыл бұрын
thank you bro your video was easy to understand
@Skprogramming
@Skprogramming 4 жыл бұрын
Int no[][] = {{1,2,3},{4,5,6},{7,8,9}}; for (int j[] : no) { for(int k : j) { System.out.print(k); } } If you want more video with logic see my channel playlist
@yvetturugari8374
@yvetturugari8374 4 жыл бұрын
👏👏you are a great teacher. Well done
@JossinJax
@JossinJax 4 жыл бұрын
I apologize if you've already answered this, but why when you create a for each loop for your Arraylist of data type do you then use the primitive "int" to iterate through the Arraylist?
@saveplanet3977
@saveplanet3977 4 жыл бұрын
nicely explained , really good and to the point .Thankyou Alex
@jadilsalman548
@jadilsalman548 2 жыл бұрын
All the way from middle east.. Thanks youre the best
@sahilverma4077
@sahilverma4077 4 жыл бұрын
thanks for explainig bro i always use to see this in various code but never got what it actually is ... Thanks!!!!!!!!!!!!!!!!
@ikramekettani8657
@ikramekettani8657 4 жыл бұрын
thank you very much for all the videos, keep it up ! I was wondering.. could you please do a video on JDBC?
@jandyrjunior
@jandyrjunior 4 жыл бұрын
Now I got it! Thank you!!!
@sime813
@sime813 5 жыл бұрын
You are far more better eloquent than my prof. Hahaha BTW thanks!
@passatpower3600
@passatpower3600 2 жыл бұрын
How can you make the loop go multippel times or as many times you want?
@Irina_1998
@Irina_1998 3 жыл бұрын
Thank you! Your videos really help me with my studies!!! :)
@flyingoctorok3149
@flyingoctorok3149 4 жыл бұрын
0 dislikes, the first in KZbin history
@brandonbath6097
@brandonbath6097 4 жыл бұрын
Thank you as always
@Yazeed-898
@Yazeed-898 4 жыл бұрын
Thank you so much my friend!!
@imanuelh.399
@imanuelh.399 5 жыл бұрын
Nice Tutorial Alex! Could you please explain UnitTest?
@ornjmoonmusicproductions3349
@ornjmoonmusicproductions3349 2 жыл бұрын
So helpful! Thanks a ton!
@DrDoomCake735
@DrDoomCake735 2 жыл бұрын
Is this for each loop only good for printing the entire array? Or can you limit it like the other for loops involving i=0; I< length; etc
@shivaagarwal7406
@shivaagarwal7406 3 жыл бұрын
Thanks.. It will be helpful :)
@sumitkumardash8657
@sumitkumardash8657 2 жыл бұрын
Best explanation
@lilv728
@lilv728 Жыл бұрын
I think my professor said for each loops are mostly used for arrays. Is that right?
@dominiquedevries9972
@dominiquedevries9972 3 жыл бұрын
you make code so easy
@maozbenkalif598
@maozbenkalif598 3 жыл бұрын
Love all your videos !! they are really a bless !!!
@smileyghostkat3068
@smileyghostkat3068 5 ай бұрын
Thanks!
@RedSynthez
@RedSynthez 2 жыл бұрын
Thanks a lot man!
@aarona9469
@aarona9469 5 жыл бұрын
Amazing. Thank you
@ericamuhammad5082
@ericamuhammad5082 2 жыл бұрын
Thank you!
@latedeveloper7836
@latedeveloper7836 3 жыл бұрын
3:15 For each loop
@medapatiashish9496
@medapatiashish9496 3 жыл бұрын
thank you buddy .
@frosty9072
@frosty9072 3 жыл бұрын
Thank you i learn so much here ^^
@harrazmasri2805
@harrazmasri2805 3 жыл бұрын
may i know what song did u use a the start of the vid 😁
@muhabalakroot
@muhabalakroot 2 жыл бұрын
Thank you very much
@patrickhastings3733
@patrickhastings3733 2 жыл бұрын
dude your videos are great! codecademy is alright, but seeing the code being written while intuitively explained is making it stick much more efficiently
@thegloriousgoldeneagle
@thegloriousgoldeneagle Жыл бұрын
SO GOOD!
@jumanahalwafi5904
@jumanahalwafi5904 4 жыл бұрын
Thanks Alex!!
@vinaypotta9392
@vinaypotta9392 4 жыл бұрын
Thank You
@raiz5161
@raiz5161 2 жыл бұрын
Thank you
@ARUNKUMAR-vi6uk
@ARUNKUMAR-vi6uk 3 жыл бұрын
Can we use "FOR EACH" to all alternatives of FOR LOOPS?
@kvelez
@kvelez Жыл бұрын
great technique.
@AnkitRaj-bn5gp
@AnkitRaj-bn5gp 3 жыл бұрын
hey Alex ! can we take input using "for each "loop or " stream.forEach() " ,,,,, please reply
@sarthakkher
@sarthakkher 5 жыл бұрын
Could you do a video on heaps?
@pjguitar15
@pjguitar15 3 жыл бұрын
What if you want to change the value of the elements in every iteration?
@blackmartini7684
@blackmartini7684 2 жыл бұрын
Awesome dude you're amazing
@xcalibills
@xcalibills 3 жыл бұрын
much thanks
@erickpeculiar823
@erickpeculiar823 3 жыл бұрын
Bro you are a goat ! tysm
@lloydderss1961
@lloydderss1961 3 жыл бұрын
how can I convert that String car to a String array again?
@_Anna_Nass_
@_Anna_Nass_ 3 жыл бұрын
I noticed you put double quotes around strings and single quotes around chars, is that convention?
@ВасилиянВасилев
@ВасилиянВасилев 2 жыл бұрын
Thanks man :).
@fuzedcable5612
@fuzedcable5612 4 жыл бұрын
That’s pretty kewl
@mitchelljames8453
@mitchelljames8453 3 жыл бұрын
nice vid, thanks
@steved.1754
@steved.1754 3 жыл бұрын
Is foreach same as "enhanced" for loop?
@latedeveloper7836
@latedeveloper7836 3 жыл бұрын
I get most of it but is the 'String car' a completely new variable inside the for each loop? I see 'cars' in the String array declaration but no mention of a 'car' class or variable mentioned elsewhere. Any help much appreciated. Thanks
@vornamenachname2858
@vornamenachname2858 3 жыл бұрын
String car is just a new variable that contains all the contents from the array, but instead of having to make an entire for loop etc you can just print it out in a foreach loop. At least that's how I understood it
@sneakycheeky531
@sneakycheeky531 3 жыл бұрын
cheers pal
@shaibalahmed9317
@shaibalahmed9317 4 жыл бұрын
Another easy way to print is typing sout.
@moushumirahman7410
@moushumirahman7410 3 жыл бұрын
thankuuuuu 💜💜💜
@bluesp6267
@bluesp6267 4 жыл бұрын
How do you do for each loop for multidimentional arrays?
@Skprogramming
@Skprogramming 4 жыл бұрын
Int no[][] = {{1,2,3},{4,5,6},{7,8,9}}; for (int j[] : no) { for(int k : j) { System.out.print(k); } } If you want more video with logic see my channel playlist
@joshblank4579
@joshblank4579 5 жыл бұрын
for the last example with the array, what is "a" and why did you put "int a" in the for each loop?
@jukka4519
@jukka4519 5 жыл бұрын
You have a variable called "a" where the type of data that stores will be int (integers), when you run the foreach, every number is going to be stored in that variable. It's the same as the cars example but with numbers
Basic Encryption And Decryption In Java #40
7:30
Alex Lee
Рет қаралды 126 М.
Java For Beginners: While, Do While & For Loops (7/10)
10:59
Codecourse
Рет қаралды 475 М.
У вас там какие таланты ?😂
00:19
Карина Хафизова
Рет қаралды 27 МЛН
When u fight over the armrest
00:41
Adam W
Рет қаралды 26 МЛН
ЛУЧШИЙ ФОКУС + секрет! #shorts
00:12
Роман Magic
Рет қаралды 35 МЛН
Array vs. ArrayList in Java Tutorial - What's The Difference?
17:36
Coding with John
Рет қаралды 549 М.
For Each Loop in Java
5:53
Neso Academy
Рет қаралды 67 М.
Naming Things in Code
7:25
CodeAesthetic
Рет қаралды 2,2 МЛН
Learn Java in 15 Minutes (seriously)
19:50
ForrestKnight
Рет қаралды 117 М.
java for-each loop 🔃
3:47
Bro Code
Рет қаралды 74 М.
#97 forEach Method in Java
4:49
Telusko
Рет қаралды 55 М.
Learn Java in 14 Minutes (seriously)
14:00
Alex Lee
Рет қаралды 4,8 МЛН
While Loop Java Tutorial #37
8:51
Alex Lee
Рет қаралды 320 М.
#33 Enhanced for Loop in Java
5:27
Telusko
Рет қаралды 105 М.
For Loop Pattern Program In Java #25
15:49
Alex Lee
Рет қаралды 170 М.
У вас там какие таланты ?😂
00:19
Карина Хафизова
Рет қаралды 27 МЛН