For Loop Java Tutorial #23

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024

ความคิดเห็น • 419

  • @alexlorenlee
    @alexlorenlee  ปีที่แล้ว +7

    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

  • @dannehsg978
    @dannehsg978 5 ปีที่แล้ว +424

    Bro you actually don’t realize how much you’ve helped me finally grasp for loops it’s been like 2 years

    • @dannehsg978
      @dannehsg978 4 ปีที่แล้ว +13

      @@rnapol3266 well were all trying to learn at the best of our abilities discouraging someone like that does not help

    • @dannehsg978
      @dannehsg978 4 ปีที่แล้ว +4

      ​@@rnapol3266 it's been an on again off again relationship with me and programming in java but I've been committing lately

    • @dannehsg978
      @dannehsg978 4 ปีที่แล้ว +1

      @@rnapol3266 Thanks a friend told me try learning Unity c# because it is very similar to java so my dad bought me a course and that's what im doing

    • @darkangel6826
      @darkangel6826 4 ปีที่แล้ว +2

      I'm the 100 th like for you broo

    • @cesarbalarezo7392
      @cesarbalarezo7392 4 ปีที่แล้ว

      @@dannehsg9784434434444 44

  • @ZainHassanVlogs
    @ZainHassanVlogs 5 ปีที่แล้ว +222

    I wish you were my computer science teacher but I am glad I can watch your videos here and learn java. My teacher just reads stuff off the powerpoint and I don't understand anything in class. This was really helpful. Thanks

    • @justv1984
      @justv1984 4 ปีที่แล้ว +21

      OMG! My teacher does the same thing. No class examples and it's so hard to learn when you can't see it right away. I think my teacher is afraid that if a code doesn't work he doesn't have the confidence to correct it.

    • @fullkornspotatis
      @fullkornspotatis 4 ปีที่แล้ว +2

      We just got a book in my school to read by ourselves. Didn't even have a class where the teacher explained what java is xD

    • @DivinityinLove
      @DivinityinLove 2 ปีที่แล้ว +2

      This must be universal!

    • @nickgavrilis2079
      @nickgavrilis2079 ปีที่แล้ว +3

      why is it that youtube tutorials are some much more efficient and valuable than professors? same

    • @hamzaak1781
      @hamzaak1781 ปีที่แล้ว

      These days, while need a professor to teach. All computer science is on youtube by young tutors that teaches with porofond ability to receive the knowledge. University prof are only there to get your money. They don't care. 4 yrs of computer science that you. An learn in less than a year.

  • @zubincannivady2589
    @zubincannivady2589 4 ปีที่แล้ว +276

    alright, lets print out grades, lets say we did bad
    me: expects him to put 60
    *puts 83*

    • @eddykagia4212
      @eddykagia4212 3 ปีที่แล้ว +10

      🤣 🤣 🤣 🤣 🤣 🤣 🤣 🤣 This has me cackling so hard

    • @aamc689315
      @aamc689315 3 ปีที่แล้ว +3

      I am this way if I dont get an A thats not doin so well

  • @yourpizzaishere4295
    @yourpizzaishere4295 4 ปีที่แล้ว +5

    Thank you very much Mr. Alex Lee. I've been learning java for 2 years now but I didn't listen in class for 2 years straight and now I'm fuck up and after watching your videos it's really gonna change by life. Thank you very very very much . I can't even describe how to thank you.

  • @strawberrybob7488
    @strawberrybob7488 5 ปีที่แล้ว +28

    Seriously THANK YOU!!! My ap computer science teacher teaches really really fast & not in the amount of detail as you. Thanks so much for being such an amazing teacher & actually explaining things so I can understand. You are the best, alex!!!

  • @potatomancer8185
    @potatomancer8185 3 ปีที่แล้ว +18

    these types of tutorials (yours) really helps someone with a very short attention span as it's concise, thank you, I actually learned more from here in 3 days than 4 months in college lol

  • @hayden3774
    @hayden3774 5 ปีที่แล้ว +13

    Just a tip for anyone who can't figure out why their for loops aren't working despite looking exactly how they should (cause this happened to me numerous times), a for loop MUST be in a method. The reason why his works in the video is because it is in the main() method. If you create a new class without any methods or constructors, your compiler will keep giving you a frustrating error... it wont work in just a class body. Took me hours to figure out why.

    • @BesoRati
      @BesoRati 9 หลายเดือนก่อน

      Still don't get it. And mine looks exactly like his but it's only printing once

    • @jigmerigdentshewang710
      @jigmerigdentshewang710 5 หลายเดือนก่อน

      @@BesoRati Yeah same here

    • @EphraimKarnley
      @EphraimKarnley 2 หลายเดือนก่อน

      @@BesoRatisame did you ever figure out why it still never worked?

  • @justinemunoz7150
    @justinemunoz7150 5 ปีที่แล้ว +14

    Hey the music the mood and lighting is the best! your way of talking makes me clearly understand whats happening i hope you continue and not stop uploading such a nice tutorial

  • @natibongo6930
    @natibongo6930 3 ปีที่แล้ว +4

    Dude, I freaking love your videos, I mean it with my whole heart. I got to a PWI for software engineering and my tutors have this underline prestige about themselves that makes it super hard to learn. Thank you, Alex.

  • @rei8360
    @rei8360 ปีที่แล้ว

    Just saw this YT tutorial again, it brings back memories! I graduated last year and working as a java backend developer for almost a year now :)

  • @SS-ug1qy
    @SS-ug1qy 5 ปีที่แล้ว +46

    you have creative teaching skills

  • @mariacunha8508
    @mariacunha8508 3 ปีที่แล้ว +1

    Man, you have no idea how much you help us with these tutorials! My new teacher just asks us to read the book and write programs without explaining how. thank you so much

  • @Nexils
    @Nexils 4 ปีที่แล้ว +2

    1:48 Me - a person who absolutely detests coding and programming, but has to succeed at exams - would definitely copy/paste all the code that many times to reach the goal because that's how stubborn I am, wanting to disprove teachers haha.
    But I know that, in the long run, that won't be the easiest way to do it. So thanks for the video! It was useful.

  • @חניקורלאנד
    @חניקורלאנד 5 ปีที่แล้ว +19

    hey man , i'm taking baby steps in the programming world and this was a concise and clear way to explain how to use for loops and for what purpose, really hit the nail on the head!!! keep the vids comin'!!!

  • @JA-nh1cn
    @JA-nh1cn 5 หลายเดือนก่อน

    this is literally the best channel to learn Java

  • @MariannFineran
    @MariannFineran หลายเดือนก่อน

    Excellent refresher video for me. I love that you say "you could be anywhere but you're here" with you. They tell the high schoolers that at church.

  • @bobmac3542
    @bobmac3542 3 ปีที่แล้ว

    So glad I found this channel every concept i don't understand from my lectures i just look up here and instantly get it.

  • @manoj15395
    @manoj15395 4 ปีที่แล้ว

    It's the first time I saw your video.Honestly, I hate coding but for first time after watching your video I like to code now.You are explaining it in a simple way and easier way to understand.Keep posting more videos.Thanks for this useful video!

  • @colormesunny7
    @colormesunny7 2 ปีที่แล้ว +2

    The way you explain things works so well for me. So glad I found your channel. About to ace this intro to pseudocode course because of you. Thank you so much!

  • @akizaizayoi4763
    @akizaizayoi4763 5 ปีที่แล้ว +2

    You explained these better than my prof.
    Seriously though, my prof is also very intimidating and he expects us to know every basic stuffs. So he wouldn't explain others such as the length. I've been wondering what's the purpose of length until I've watched this video of yours.
    Thanks for the upload, man. I hope you could also make tutorials on ternary operators and the for each.

  • @johannarodriguez4486
    @johannarodriguez4486 3 ปีที่แล้ว +1

    I literally am in my second semester in college and just started learning java,.... I missed my first two days cause the professor would not look at her emails,.. so when I had lab I was so lost, ... you do not understand how much you helped catch up!! Appreciate it!! I'm still not done watching these though FOR SURE HAHAH

    • @joetate7383
      @joetate7383 3 ปีที่แล้ว +1

      Same! Every other "tutorial" I've watched on here approaches coding as if they were talking to peers...Alex is a grade saver

  • @hkfhkfgghh9766
    @hkfhkfgghh9766 3 ปีที่แล้ว

    Hi I'm from Philippines and I'm a student of BSIT in Leyte Normal University. And your videos help me to improve my skills in programming, because you explain it in a simple words. Ty 😇

  • @mattigor5476
    @mattigor5476 ปีที่แล้ว +2

    I finally understood for loops, even with a language I've just started learning, thank you so much! 🙏🙏

  • @kaiyabou
    @kaiyabou 5 ปีที่แล้ว +6

    Mate you taught me how to understand loops in 7 minutes than my college professor for over a week. I’m failing programming rn but trying to get that grade up and your videos really are helping me!! ( also I live in NC TO! I go to Meredith lol).

    • @hk254lyt8
      @hk254lyt8 7 หลายเดือนก่อน

      How is your journey after 4years?

  • @imperfectCraft
    @imperfectCraft ปีที่แล้ว

    How do you not have more subscribers! Just started learning java for the 10th time but your tutorials have made it so much easier for me to actually commit and learn. Thank you so much!

  • @aryanmondkar286
    @aryanmondkar286 5 ปีที่แล้ว +7

    Thanks for saving us Students in APCS!! You really do an amazing job teaching these concepts.. I am having a hard time learning from my teacher because she doesnt teach well at all but these videos really help a lot

  • @techibuzz5464
    @techibuzz5464 2 ปีที่แล้ว

    You are a legend. You are just a LEGEND, you don't know how much you've helped me understand all of this in such a simple way!

  • @Cranky23
    @Cranky23 2 ปีที่แล้ว +2

    It's been 3 months since we started learning about for loops, and I've been struggling to understand it. Who knew an 8 minute video would save me all the hassle of going through my notes again

  • @justdangel9718
    @justdangel9718 2 ปีที่แล้ว

    Im learning programming since 2 years now and im about the age of 14, thanks you helped me really much

  • @joetate7383
    @joetate7383 3 ปีที่แล้ว

    Holy shit man, I GET IT....now. I needed your channel like 6 months ago.... happy as fuq I'm here now. Thanks!

  • @spidermonkey2903
    @spidermonkey2903 4 ปีที่แล้ว +3

    i'm learning more from you than my ics professor. much appreciated :)

  • @tnmymtr
    @tnmymtr 3 ปีที่แล้ว +1

    I am really happy that there is a youtube channel like yours. Thanks a lot. You teach in the best way!! How i wish you were my computer applications teacher. Merciii

  • @jenniferm2370
    @jenniferm2370 4 ปีที่แล้ว

    Your videos have stopped me from throwing out my laptop more than once. Me and my laptop thank you :)

  • @brookescott526
    @brookescott526 3 ปีที่แล้ว

    I really thought I was about to fail my programming class but you have helped me so freaking much!!! Thank you!!!

  • @dopesama4098
    @dopesama4098 5 ปีที่แล้ว +4

    honestly this might be my favorite tutorial/explanation. Thanks G

  • @that_young_teen4074
    @that_young_teen4074 3 ปีที่แล้ว

    Sincerely I wish you were my teacher
    Just this first video I ever saw of you and I've subscribed immediately
    Thanks alot

  • @GiovannaAndrade_
    @GiovannaAndrade_ หลายเดือนก่อน

    Thank you so much! I was pretty confused about the For Loops, this video helps me to connect the dots in my mind!

  • @everfaithful8796
    @everfaithful8796 5 ปีที่แล้ว

    the best video on for loops on youtube

  • @mahra5900
    @mahra5900 4 ปีที่แล้ว +1

    i have been binge watching all of your videos and i have learned soo much, compared to what my teachers teach me. Thank youu

  • @ibnantonio
    @ibnantonio 5 ปีที่แล้ว +1

    dude I’ve been watching a few of your videos now and I have to say I really enjoy them + they’re super helpful and you explain just as if I was asking the question on the spot.

  • @trodg
    @trodg 2 ปีที่แล้ว

    Thank you. I'm so glad these videos exist.

  • @borislavaborisova5810
    @borislavaborisova5810 4 ปีที่แล้ว

    You are much better than my teacher!! Thank you!

  • @seanramos4558
    @seanramos4558 5 ปีที่แล้ว

    You should become a professor. You make it really easy to understand and break it down well, unlike my professor with a masters

  • @SoapMacLavish
    @SoapMacLavish 4 ปีที่แล้ว

    your channel is a godsend seriously, many thanks

  • @HamedAthari
    @HamedAthari 2 ปีที่แล้ว

    mannnnnnn you're the best i was hating for loop to much now i love it

  • @adityabiswas7912
    @adityabiswas7912 3 ปีที่แล้ว +27

    I'm 12 but your so great at teaching that a 7 year old could understand.

    • @icyisaiah2701
      @icyisaiah2701 3 ปีที่แล้ว +1

      Im 11

    • @adityabiswas7912
      @adityabiswas7912 3 ปีที่แล้ว

      @@icyisaiah2701 i'm actually 11 years and a half

    • @vectorionyoutube
      @vectorionyoutube 3 ปีที่แล้ว

      im 14, hes to good at teaching java and i understand it all!

    • @calacatchy
      @calacatchy 3 ปีที่แล้ว +1

      @@adityabiswas7912 what, 11 yr olds know how to code 0_0

    • @adityabiswas7912
      @adityabiswas7912 3 ปีที่แล้ว

      @@calacatchy kind of

  • @colinrhee98
    @colinrhee98 3 ปีที่แล้ว

    Thank you for making these videos. It's always fun learning from someone who has a passion for what they're doing.

  • @wboyce5299
    @wboyce5299 3 ปีที่แล้ว

    im a new student in java. this helped so much. Gotta admit i am a little scared and nerous all in one.but this did help.

  • @ssnowbarbiemoone2088
    @ssnowbarbiemoone2088 11 หลายเดือนก่อน

    Thank you so much. You explained the thing my professor used 8hour to explain to me(and I didn’t get it) in 7 minutes! ❤❤

  • @laksh--
    @laksh-- 4 ปีที่แล้ว

    thank you for your help I have watched many videos for understanding for loop and i finally understand by watching your video.

  • @ackerman7101
    @ackerman7101 4 ปีที่แล้ว

    i just saw the array video and it was so fun , i was actually happy , and excited about programming

  • @dilberkeles9388
    @dilberkeles9388 ปีที่แล้ว

    You are an amazing teacher. Just started to learn Java, and you make things easy.

    • @Rufyaan
      @Rufyaan ปีที่แล้ว

      Which app is used visual ?😢

  • @josephvoneverec7048
    @josephvoneverec7048 4 ปีที่แล้ว

    As beginner I'd say it wayyy harder at first but keep focusing you gonna succeed, thats why I'm here i found trouble with for loop (i did another method), but this worked so thank you

  • @safiullahsaighani
    @safiullahsaighani ปีที่แล้ว

    ALEX LEE!!! BRO! You are amazing person, amazing soul, amazing explanation, amazing energy! me and my buddy are watching your videos all the time! Thanks again for everything you do!

  • @pablourieldionisio7424
    @pablourieldionisio7424 4 ปีที่แล้ว

    you are good at teaching ,greetings from Mexico

  • @aksharasrivastava9130
    @aksharasrivastava9130 3 ปีที่แล้ว +1

    I found my new computer applications teacher ......thanks 😊😀this helps alot with my studies 🤧🥺✨❤️

  • @ethanseow6936
    @ethanseow6936 4 ปีที่แล้ว +22

    QOTD answer:
    my money

  • @thusharmanoj8858
    @thusharmanoj8858 2 ปีที่แล้ว +1

    this helped me more in arrays than for

  • @ytshortchannel224
    @ytshortchannel224 8 หลายเดือนก่อน

    I love this channel so much. Keep up greta wirk!

  • @bonguthandokhumalo7552
    @bonguthandokhumalo7552 3 ปีที่แล้ว

    Did you really just copied the same line 100 times :D ... thank you so much man. Simple and basic.

  • @abrarabhinaya9628
    @abrarabhinaya9628 3 ปีที่แล้ว

    the music is making me not sleepy watching you code, and thats great

  • @darshanashamasundar2365
    @darshanashamasundar2365 2 ปีที่แล้ว

    i am impressed with the way you teach:) it makes me understand easy.

  • @SomebodySomebody-zt3kp
    @SomebodySomebody-zt3kp ปีที่แล้ว

    Thankyou soo much!! You helped alot. This was the best video!!

  • @khaledwaleed862
    @khaledwaleed862 4 ปีที่แล้ว

    Man , you are the definition of the word legend
    Thank you so much 😊
    And keep up the good work

  • @sinakhodhlomo
    @sinakhodhlomo 3 ปีที่แล้ว

    he does it again, what a legend

  • @MarkJones-bc5vx
    @MarkJones-bc5vx 4 ปีที่แล้ว

    Great examples. Your tutorial was very easy to follow and the lesson was very clear.

  • @rittenbrake1613
    @rittenbrake1613 4 ปีที่แล้ว

    I really love the way you teach

  • @sophiebuchanan9861
    @sophiebuchanan9861 2 ปีที่แล้ว +1

    thank you

  • @ishaanmahapatro7504
    @ishaanmahapatro7504 3 ปีที่แล้ว

    Thanks for making Java so easy to understand

    • @ishaanmahapatro7504
      @ishaanmahapatro7504 3 ปีที่แล้ว

      this is what I made using for loops :
      import java.math.BigDecimal;
      import java.math.RoundingMode;
      import java.util.Scanner;
      public class Counter {
      public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int i;
      double c;

      System.out.println("welcome to counter");
      System.out.println("Enter your total");
      i = scan.nextInt();
      System.out.println("Enter your increment");
      c = scan.nextDouble();
      if(c > 0){
      for (double a = 0; a

  • @afshin6148
    @afshin6148 2 ปีที่แล้ว

    bro you helped me alot with this, i appreciate your work, thank you man.

  • @priscilaisabella9519
    @priscilaisabella9519 3 ปีที่แล้ว

    I really don't know how to thank you for your great videos!

  • @GabrielDalim
    @GabrielDalim 2 ปีที่แล้ว

    Simple but AMAZING! Thanks for sharing your years of Experience to make it so easy. Blessings 🙏🏼

  • @raukantsingh1774
    @raukantsingh1774 2 ปีที่แล้ว

    Two time your video save my time thankyou from India 🥰

  • @AndersonGScarpi
    @AndersonGScarpi 2 ปีที่แล้ว

    Cool video, bro! This is the first video of yours I've ever watched. I really liked it. You made me laugh at the end of your video.

  • @teodorastoyanova3259
    @teodorastoyanova3259 4 ปีที่แล้ว +1

    Keep up the good work. I really like your videos.

  • @yazanalhariri221
    @yazanalhariri221 4 ปีที่แล้ว

    I am really happy, you a great teacher, many thanks

  • @engelbertmyers5157
    @engelbertmyers5157 ปีที่แล้ว

    I love your videos, they have taught me so much. Good job.

  • @Allen-fq5xn
    @Allen-fq5xn 5 ปีที่แล้ว +1

    keep it up bro! its not easy to keep in mind, but im trying. thanks for helping to understand more how to code. your my idol!

  • @CaveEdits
    @CaveEdits 5 ปีที่แล้ว +1

    Put this on the beginner's turtorial playlist , I didn't find it there and was so confused lol.

  • @jhansisriram4018
    @jhansisriram4018 3 ปีที่แล้ว

    Hi bro , really you are teaching well 👏👏👏👏👏. Everyone should understand very fastly.

  • @azeemali7102
    @azeemali7102 2 ปีที่แล้ว

    Since you've helped me here's a bit for your future viewers via a Google search; On average, becoming a confident Java programmer takes about 1-2 years, considering you spend 2-3 hours per day practicing coding. Familiarising yourself with the language to the point where you can edit someone else's code or write basic apps can take as little as four months.

  • @MusaGaming
    @MusaGaming 4 ปีที่แล้ว

    really helpful definitely deserves a subscribe.

  • @benugoitom4274
    @benugoitom4274 4 ปีที่แล้ว

    Thanks for sharing this important lesson...........

  • @gravitiv9030
    @gravitiv9030 5 ปีที่แล้ว +1

    Thanks bro i understand now how to use for loop.. this video is really helpful😁

  • @michelleedward8755
    @michelleedward8755 ปีที่แล้ว

    Thank you so much You explains really clear and easy to understand.

  • @alexandriabrown795
    @alexandriabrown795 2 ปีที่แล้ว

    Great clip, Alex! Thank you so much!

  • @evotec4375
    @evotec4375 5 ปีที่แล้ว +1

    I would repeat laps on the Nürburgring as much as I wanted. :D Thanks for the good Video!

    • @alexlorenlee
      @alexlorenlee  5 ปีที่แล้ว +1

      evotec dude I want to learn to drive race cars so bad, I’m thinking of buying a Veloster N

    • @evotec4375
      @evotec4375 5 ปีที่แล้ว

      @@alexlorenlee if you really want to learn then begin at the bottom. You wouldn't start with a big programm if you just start coding? If you want I could tell you a little about it. Write me a personal message in Discord (Evodesignz) :)

  • @danieldickenson2581
    @danieldickenson2581 4 ปีที่แล้ว

    thats a relic keyboard man

  • @shmokh4289
    @shmokh4289 4 ปีที่แล้ว

    You are awesome man !🤩
    From Saudi Arabia

  • @franklinmaradiaga2401
    @franklinmaradiaga2401 3 ปีที่แล้ว +2

    Scanner scnr = new Scanner(System.in);
    System.out.println("Isn't he the best teacher?")
    String userInput = scnr.nextLine();

    • @shreyas5261
      @shreyas5261 3 ปีที่แล้ว +1

      Yes

    • @cookqie8822
      @cookqie8822 3 ปีที่แล้ว +1

      if (userInput.equal("yes") {
      System.out.println("Heck yeah");
      } else {
      System.out.println("Well you are wrong!!");
      }

    • @shreyas5261
      @shreyas5261 3 ปีที่แล้ว +2

      @@cookqie8822 Heck yeah

  • @krishnachaitanya8853
    @krishnachaitanya8853 10 หลายเดือนก่อน

    thank you Alex, so nice , keep teaching

  • @DayronR
    @DayronR ปีที่แล้ว

    Thank you Alex this video has helped me a lot.

  • @roysteven1179
    @roysteven1179 หลายเดือนก่อน

    Thanks, so easy to understand.

  • @knight6087
    @knight6087 3 ปีที่แล้ว

    This really helps me a lot than the teacher giving me module😂😂Thanks A Lot!!👍👍

  • @maricrisdilada7159
    @maricrisdilada7159 3 ปีที่แล้ว

    I'll push the subscribe button for this! Your a big help

  • @niruhirapara7862
    @niruhirapara7862 2 ปีที่แล้ว

    You are a great teacher!

  • @alexisjohnaquino2261
    @alexisjohnaquino2261 2 ปีที่แล้ว

    bro this video is 3 yrs ago and still watching it lol haha thankyou bro

  • @insidethemindspodcast
    @insidethemindspodcast 3 ปีที่แล้ว

    Great video, thanks Alex! Makes a lot more sense now!

  • @haykeelili8108
    @haykeelili8108 3 ปีที่แล้ว

    Thankyou!! New subscriber from Philippines