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
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 ;^)
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
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!
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
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.
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!
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
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
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?
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
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
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
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
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
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
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
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 ;^)
This line by line explanation is bless
This is guy is literally my new fav youtuber
👌👌👌
Human debugger
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
Danneh SG thanks :)
ur the pewdipie comment
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!!
I agree with Dannesh! 😊 Your videos are exellent in their short and informative format! Keep it going!! 👍
Very useful video , thanks!
"These are all cars i really want"
He is cute
Your tutorials are super simple and helpful Alex. I watch your tutorials now when I need help. Thank you.
Can't thank you enough! The thorough breakdown made all the difference in understanding this.
Hey thanks man you really helped me out in my finals and also i hope you get your dream car:>
You are amaizing, thank you!!!!!!
Line-by-line explanation really helps. Thank you!
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!
this is an impressive channel, we are getting it loud and clear
Thanks a lot Alex, for everyone the short-cut of System.out.println() is type sysout + hit buttons ctrl+space.
aha! this is a nice shortcut thanks!
This is some premium content, appreciate your efforts Alex, keep it up.
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
So glad I'm growing in a time where Alex Lee finished his java instructionals 😭 actually the best tutor i've had
I learn a lot from your vids. Thank you
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.
You have the best java tutos on UA-cam 😃😃😍😍😍💪🏼🇩🇿
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!
You are very good teacher!!!
Great video! I like the quick and fluent explanation, and especially how you go line by line. Thanks!
Thanks for free tutorial 😍
omg thank you so much i needed this
69
I learned java like a year ago , almost forgot how to code, your video definitely helpful . I learned a lot from your video.
Seriously helping me get through my java courses! Thank you!!!!
WoW... I've struggled with this however I've just watched your vid... I think I finally have it down. Thank u.
👏👏you are a great teacher. Well done
finally this was the video i needed!!!!
Alex you're a legend man
Alex you're just a hero! Honestly dude you're doing such an amazing work. Rooting for you!
thank you bro your video was easy to understand
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
nicely explained , really good and to the point .Thankyou Alex
Love all your videos !! they are really a bless !!!
THANKK YOUUU VERY MUCHHH, I have been working for this assignment for almost two nights and discovering the print and println difference
this dude coming in clutch
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
Now I got it! Thank you!!!
You save me yet again! Thank you.
Mahn I love how well you explain stuff that confuses me. Thank you for the line by line explanation. Bless up mahn!
So helpful! Thanks a ton!
Thank you as always
Thank you! Your videos really help me with my studies!!! :)
Thank you so much. I've been sat here scratching my head and you've helped me a lot! What keyboard do you use?
Thank you so much my friend!!
Holy moly u save me everytime before exams
Simple and very easy to understand. Thanks Mr. Alex Lee. Fan from India. :)
Thanks.. It will be helpful :)
Thank you i learn so much here ^^
Amazing. Thank you
How can you make the loop go multippel times or as many times you want?
Thanks Alex!!
Thanks a lot man!
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);
}
Thank you!
Wtf.. just replacing a forLoop by forEachLoop solved the problem ive been stuck on for hrs. Thanks a lot Alex!
Thank you very much
thank you very much for all the videos, keep it up ! I was wondering.. could you please do a video on JDBC?
You are far more better eloquent than my prof. Hahaha
BTW thanks!
Thanks!
Thank You
if I search a programming subject, then Alex face shows up, that means im gonna have a great time understanding this subject
U always do the one thing I wanna know
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?
Thank you
Bro love form INDIA to you and your faimly
thanks for explainig bro i always use to see this in various code but never got what it actually is ...
Thanks!!!!!!!!!!!!!!!!
Best explanation
All the way from middle east.. Thanks youre the best
thankuuuuu 💜💜💜
SO GOOD!
Nice Tutorial Alex! Could you please explain UnitTest?
may i know what song did u use a the start of the vid 😁
0 dislikes, the first in UA-cam history
3:15 For each loop
much thanks
great technique.
nice vid, thanks
thank you buddy
.
Awesome dude you're amazing
Thanks man :).
Bro you are a goat ! tysm
you make code so easy
That’s pretty kewl
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
Could you do a video on heaps?
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
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
I think my professor said for each loops are mostly used for arrays. Is that right?
hey Alex ! can we take input using "for each "loop or " stream.forEach() " ,,,,, please reply
cheers pal
How do you do for each loop for multidimentional arrays?
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
Wonderful
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
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
Great question! Change it to name == "John" :)
@@alexlorenlee thanks! you're a very good teacher!
Is foreach same as "enhanced" for loop?
Can we use "FOR EACH" to all alternatives of FOR LOOPS?
for the last example with the array, what is "a" and why did you put "int a" in the for each loop?
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
how can I convert that String car to a String array again?