For Each Loop In Java Tutorial #39

  Рет қаралды 137,733

Alex Lee

Alex Lee

Күн бұрын

Пікірлер: 129
@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
@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
@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 ;^)
@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!!
@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
@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!
@johnabeldoploso2017
@johnabeldoploso2017 Жыл бұрын
Hey thanks man you really helped me out in my finals and also i hope you get your dream car:>
@Aditya-Pathariya
@Aditya-Pathariya 4 жыл бұрын
Your tutorials are super simple and helpful Alex. I watch your tutorials now when I need help. Thank you.
@omexiechama846
@omexiechama846 4 жыл бұрын
this is an impressive channel, we are getting it loud and clear
@reachtrev69
@reachtrev69 3 жыл бұрын
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!
@youareiamurim
@youareiamurim 5 жыл бұрын
I agree with Dannesh! 😊 Your videos are exellent in their short and informative format! Keep it going!! 👍
@abdeselamselami4532
@abdeselamselami4532 5 жыл бұрын
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!
@Amera-vt6xo
@Amera-vt6xo 4 жыл бұрын
"These are all cars i really want" He is cute
@valdompinga
@valdompinga 4 жыл бұрын
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
@ahmedmustafa9154
@ahmedmustafa9154 6 ай бұрын
Can't thank you enough! The thorough breakdown made all the difference in understanding this.
@dname1802
@dname1802 2 ай бұрын
Line-by-line explanation really helps. Thank you!
@jeeteshkumar11
@jeeteshkumar11 2 жыл бұрын
This is some premium content, appreciate your efforts Alex, keep it up.
@beraterkul7950
@beraterkul7950 Жыл бұрын
Very useful video , thanks!
@BrayDinh
@BrayDinh 11 күн бұрын
So glad I'm growing in a time where Alex Lee finished his java instructionals 😭 actually the best tutor i've had
@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.
@minhhuynh2646
@minhhuynh2646 5 жыл бұрын
I learn a lot from your vids. Thank you
@juansalas9951
@juansalas9951 4 жыл бұрын
this dude coming in clutch
@zionasohun
@zionasohun Жыл бұрын
WoW... I've struggled with this however I've just watched your vid... I think I finally have it down. Thank u.
@imaverygoodguy
@imaverygoodguy 5 жыл бұрын
You have the best java tutos on KZbin 😃😃😍😍😍💪🏼🇩🇿
@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); }
@draxanomourad141
@draxanomourad141 3 жыл бұрын
Alex you're just a hero! Honestly dude you're doing such an amazing work. Rooting for you!
@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
@Car00071
@Car00071 3 жыл бұрын
Great video! I like the quick and fluent explanation, and especially how you go line by line. Thanks!
@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!
@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
@rachelpang4193
@rachelpang4193 4 жыл бұрын
Holy moly u save me everytime before exams
@Riveracakes
@Riveracakes Жыл бұрын
Seriously helping me get through my java courses! Thank you!!!!
@sourceOfJoy21
@sourceOfJoy21 4 жыл бұрын
Alex you're a legend man
@Drdominguezc
@Drdominguezc Жыл бұрын
You are amaizing, thank you!!!!!!
@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
@destiny4265
@destiny4265 4 жыл бұрын
omg thank you so much i needed this
@themodestai9603
@themodestai9603 4 жыл бұрын
69
@roshnidsouza5179
@roshnidsouza5179 3 жыл бұрын
finally this was the video i needed!!!!
@yvetturugari8374
@yvetturugari8374 4 жыл бұрын
👏👏you are a great teacher. Well done
@platafacturi8774
@platafacturi8774 Жыл бұрын
You are very good teacher!!!
@deivasigamanimurugan4892
@deivasigamanimurugan4892 2 жыл бұрын
Simple and very easy to understand. Thanks Mr. Alex Lee. Fan from India. :)
@saveplanet3977
@saveplanet3977 4 жыл бұрын
nicely explained , really good and to the point .Thankyou Alex
@av2678
@av2678 2 жыл бұрын
Wtf.. just replacing a forLoop by forEachLoop solved the problem ive been stuck on for hrs. Thanks a lot Alex!
@mellzylwalks2645
@mellzylwalks2645 4 жыл бұрын
Thanks for free tutorial 😍
@jandyrjunior
@jandyrjunior 4 жыл бұрын
Now I got it! 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
@DANNYFIGDESIGNS
@DANNYFIGDESIGNS 3 жыл бұрын
You save me yet again! Thank you.
@Irina_1998
@Irina_1998 3 жыл бұрын
Thank you! Your videos really help me with my studies!!! :)
@sime813
@sime813 5 жыл бұрын
You are far more better eloquent than my prof. Hahaha BTW thanks!
@it4773
@it4773 4 жыл бұрын
Bro love form INDIA to you and your faimly
@sahilverma4077
@sahilverma4077 4 жыл бұрын
thanks for explainig bro i always use to see this in various code but never got what it actually is ... Thanks!!!!!!!!!!!!!!!!
@jadilsalman548
@jadilsalman548 2 жыл бұрын
All the way from middle east.. Thanks youre the best
@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?
@Yazeed-898
@Yazeed-898 4 жыл бұрын
Thank you so much my friend!!
@maozbenkalif598
@maozbenkalif598 3 жыл бұрын
Love all your videos !! they are really a bless !!!
@flyingoctorok3149
@flyingoctorok3149 4 жыл бұрын
0 dislikes, the first in KZbin history
@brandonbath6097
@brandonbath6097 4 жыл бұрын
Thank you as always
@ornjmoonmusicproductions3349
@ornjmoonmusicproductions3349 2 жыл бұрын
So helpful! Thanks a ton!
@latedeveloper7836
@latedeveloper7836 3 жыл бұрын
3:15 For each loop
@aarona9469
@aarona9469 5 жыл бұрын
Amazing. Thank you
@passatpower3600
@passatpower3600 2 жыл бұрын
How can you make the loop go multippel times or as many times you want?
@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?
@jumanahalwafi5904
@jumanahalwafi5904 4 жыл бұрын
Thanks Alex!!
@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?
@frosty9072
@frosty9072 3 жыл бұрын
Thank you i learn so much here ^^
@shivaagarwal7406
@shivaagarwal7406 4 жыл бұрын
Thanks.. It will be helpful :)
@RedSynthez
@RedSynthez 2 жыл бұрын
Thanks a lot man!
@sumitkumardash8657
@sumitkumardash8657 2 жыл бұрын
Best explanation
@imanuelh.399
@imanuelh.399 5 жыл бұрын
Nice Tutorial Alex! Could you please explain UnitTest?
@ericamuhammad5082
@ericamuhammad5082 2 жыл бұрын
Thank you!
@vinaypotta9392
@vinaypotta9392 4 жыл бұрын
Thank You
@smileyghostkat3068
@smileyghostkat3068 6 ай бұрын
Thanks!
@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
@thegloriousgoldeneagle
@thegloriousgoldeneagle Жыл бұрын
SO GOOD!
@harrazmasri2805
@harrazmasri2805 3 жыл бұрын
may i know what song did u use a the start of the vid 😁
@dominiquedevries9972
@dominiquedevries9972 3 жыл бұрын
you make code so easy
@muhabalakroot
@muhabalakroot 2 жыл бұрын
Thank you very much
@medapatiashish9496
@medapatiashish9496 3 жыл бұрын
thank you buddy .
@kvelez
@kvelez Жыл бұрын
great technique.
@DrDoomCake735
@DrDoomCake735 3 жыл бұрын
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
@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
@AnkitRaj-bn5gp
@AnkitRaj-bn5gp 3 жыл бұрын
hey Alex ! can we take input using "for each "loop or " stream.forEach() " ,,,,, please reply
@raiz5161
@raiz5161 3 жыл бұрын
Thank you
@thepowerx2965
@thepowerx2965 5 жыл бұрын
Good video! I 've a question: is it possible to put strings instead of integers in a if statement? in my code I put: if (name = "Jhon") {//do stuff} But I get error. Help pls PD: if there's a mistake is because I'm spanish so my english is sooo bad
@alexlorenlee
@alexlorenlee 5 жыл бұрын
Great question! Change it to name == "John" :)
@thepowerx2965
@thepowerx2965 5 жыл бұрын
@@alexlorenlee thanks! you're a very good teacher!
@blackmartini7684
@blackmartini7684 2 жыл бұрын
Awesome dude you're amazing
@mitchelljames8453
@mitchelljames8453 3 жыл бұрын
nice vid, thanks
@xcalibills
@xcalibills 3 жыл бұрын
much thanks
@ВасилиянВасилев
@ВасилиянВасилев 2 жыл бұрын
Thanks man :).
@erickpeculiar823
@erickpeculiar823 3 жыл бұрын
Bro you are a goat ! tysm
@fuzedcable5612
@fuzedcable5612 4 жыл бұрын
That’s pretty kewl
@moushumirahman7410
@moushumirahman7410 3 жыл бұрын
thankuuuuu 💜💜💜
@sneakycheeky531
@sneakycheeky531 3 жыл бұрын
cheers pal
@sarthakkher
@sarthakkher 5 жыл бұрын
Could you do a video on heaps?
@lilv728
@lilv728 Жыл бұрын
I think my professor said for each loops are mostly used for arrays. Is that right?
@lloydderss1961
@lloydderss1961 3 жыл бұрын
how can I convert that String car to a String array again?
@ARUNKUMAR-vi6uk
@ARUNKUMAR-vi6uk 3 жыл бұрын
Can we use "FOR EACH" to all alternatives of FOR LOOPS?
@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
@MaximumJoy
@MaximumJoy 5 жыл бұрын
Wonderful
@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
@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
@steved.1754
@steved.1754 4 жыл бұрын
Is foreach same as "enhanced" for loop?
Basic Encryption And Decryption In Java #40
7:30
Alex Lee
Рет қаралды 126 М.
For Loop Pattern Program In Java #25
15:49
Alex Lee
Рет қаралды 171 М.
Wall Rebound Challenge 🙈😱
00:34
Celine Dept
Рет қаралды 21 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 15 МЛН
Array vs. ArrayList in Java Tutorial - What's The Difference?
17:36
Coding with John
Рет қаралды 564 М.
For Each Loop in Java
5:53
Neso Academy
Рет қаралды 69 М.
Learn Java in 15 Minutes (seriously)
19:50
ForrestKnight
Рет қаралды 145 М.
java for-each loop 🔃
3:47
Bro Code
Рет қаралды 76 М.
While Loop Java Tutorial #37
8:51
Alex Lee
Рет қаралды 323 М.
Inheritance in Java Tutorial #86
10:34
Alex Lee
Рет қаралды 394 М.
Java For Beginners: While, Do While & For Loops (7/10)
10:59
Codecourse
Рет қаралды 478 М.
Return Statement in Java #27
14:38
Alex Lee
Рет қаралды 283 М.
Classes & Objects | Java | Tutorial 26
13:52
Giraffe Academy
Рет қаралды 148 М.