The For Loop in Java

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 98

  • @fidelcastro8276
    @fidelcastro8276 3 года назад +62

    Just have to say, you're a legend. Thanks for all the videos brother! You are helping a student in need.

    • @RandyDaGamer
      @RandyDaGamer 6 месяцев назад

      Indeed. He’s helping a lot of students. He’s a good man.

    • @RandyDaGamer
      @RandyDaGamer 6 месяцев назад

      You’re good at explaining. Concise and articulate.

  • @ramseycarolus206
    @ramseycarolus206 5 месяцев назад +3

    I've been on for loops for almost 2 weeks now. You sir explained it brilliantly. I felt like a genius when the light bulb went on 😄.

  • @cra_zy.cherry3330
    @cra_zy.cherry3330 3 года назад +24

    Sir, you are teaching better than my teacher

  • @fabnsavvy
    @fabnsavvy Год назад +10

    I am learning Loops right now and I thank you for explaining so well!

  • @professionalprogrammer3324
    @professionalprogrammer3324 4 года назад +35

    I am understanding these concepts easily after learning C

  • @YounisAlalwany
    @YounisAlalwany Месяц назад

    Knowing the basics of dart made this super super super easy..
    My friend a computer science graduate once told me that if you know one programming language, The other's are going to be so easy to learn. You are only going to struggle with the first one.

  • @ashChad
    @ashChad 3 года назад +8

    a better example of for loop than I got at uni........thanks bro

  • @rayonabs-c1j
    @rayonabs-c1j 9 месяцев назад +1

    That is best explanation I have ever seen

  • @sdilip5464
    @sdilip5464 Год назад +4

    thanks thanks thanks a lot these videos are a lot a lot clear and detailed the coomparision u did here is just awesome . we truly need this kind of videos

  • @najibassaadi5598
    @najibassaadi5598 3 года назад +5

    Great explanation!!! Thanks for helping me understand better!!!

  • @rodicaidu2166
    @rodicaidu2166 9 месяцев назад

    you explain better than my professor, thank you

  • @cristianvillalobos7701
    @cristianvillalobos7701 Год назад +2

    incredibly thorough video. Thank you!!

  • @zain2895
    @zain2895 Год назад

    Such a life saver!!! THANK YOU THANK YOU THANK YOU

  • @Altair.1187
    @Altair.1187 9 месяцев назад

    ++i != i++ my friend, in Java the precedence starts from left to right, so ++i means that i will be incremented by one and then used in the equation, i++ means you'll use the old i first in the equation then get it incremented by 1.

    • @LearnJava_Programming
      @LearnJava_Programming 4 месяца назад

      True but that's in an equation. If you're looking at i++ as itself it is the same as ++i, both will increase i by 1. In an equation, it matters because the i value used might be different.

    • @Altair.1187
      @Altair.1187 4 месяца назад

      @@LearnJava_Programming So you are proving what I was saying, they are not the same.

    • @LearnJava_Programming
      @LearnJava_Programming 3 месяца назад

      @@Altair.1187 true but only in an equation.

  • @florenti1529
    @florenti1529 2 года назад +4

    Great explanation, excellent work.

  • @khaniesmakeuptutorials8649
    @khaniesmakeuptutorials8649 Год назад

    Thank you so much for teaching you're amazing and may Allah bless you Jazakallah

  • @deepositive
    @deepositive 3 года назад +1

    Tq..you made it more easier

  • @jimcarryomambak7871
    @jimcarryomambak7871 Год назад +4

    damn I never even thought that I could understand loop in just 8 minutes, better than my prof

  • @4ce893
    @4ce893 4 месяца назад

    simply legendary.

  • @Noahmurphy518
    @Noahmurphy518 Год назад

    Thank you pal! God bless you

  • @yasodyapanditha5071
    @yasodyapanditha5071 Год назад +1

    Well explained .Thank you .keep it Up !

  • @Empower_UU
    @Empower_UU Год назад

    I don;t know what to say. Very helpful indeed

  • @miragon1768
    @miragon1768 Год назад

    "As you can see" gets me too much🤣 though thank you for making it easy to understand!

  • @squeekygee8322
    @squeekygee8322 Год назад +1

    thank you.

  • @nishak6826
    @nishak6826 Год назад +1

    Great sir. Really useful

  • @thesupergamer5894
    @thesupergamer5894 8 месяцев назад

    I missed class the day we went over this, and was totally confused about how this worked... now that I see it, I feel stupid for not understanding it sooner

  • @ControllerCrusade675
    @ControllerCrusade675 3 года назад +1

    this helps a lot

  • @ishakeshri4849
    @ishakeshri4849 Год назад

    Well explain thnku for this video

  • @sanjubhaskar7744
    @sanjubhaskar7744 9 месяцев назад

    Thanks, I got it so nicely😊😉

  • @lyncker3343
    @lyncker3343 Год назад

    Excellent discusssion it was really clear. tho at 7:05 will adding a return i; to the body of the loop be redundant or add no additional value?

  • @sithumdilshan5878
    @sithumdilshan5878 3 года назад +1

    Thank you so much this helps me lot

  • @theakshatgupta_
    @theakshatgupta_ 2 года назад

    Excellent Explaination

  • @njabznmasikane359
    @njabznmasikane359 6 месяцев назад

    Thanks so much!

  • @Midy755
    @Midy755 2 года назад

    Best explanation ever!

  • @souparno5065
    @souparno5065 Год назад +1

    7:25 i have a problem like if i want to print "Hello" say, 15 times how do i do it?
    i wrote the code as: for( ; i

    • @suswithcherry9252
      @suswithcherry9252 10 месяцев назад

      if you are using a condition then the variable should be initialized first.

  • @parbatbudha1150
    @parbatbudha1150 4 года назад +2

    can we d use float/double variable for looping purpose ???

    • @theblindprogrammer
      @theblindprogrammer 4 года назад +1

      double[] inches = {1.3,4.2,59.4, 112.9, 88.7};
      float[] bigNumbers = {1000000000,2000000000, 300000000, 400000000};
      System.out.printf("%4s%15s", "Index", "Value");
      System.out.println();
      for (int i = 0; i < bigNumbers.length;i++){
      System.out.printf("%4s%16s
      ", (i+1), bigNumbers[i]);
      }
      for (int i = 0; i < inches.length;i++){
      System.out.printf("%4s%16s
      ", (i+1), inches[i]);
      }

  • @mr.shuklashukla3259
    @mr.shuklashukla3259 4 года назад +1

    Sir..
    I'm doing BTech form electronic and communications branch but I interested in android devlopment that's why I'm learning java but I confused that what i learn first opps or core java ,and i have no programing experience instead of c language .
    Plz sugges me .. and also sugges if you have any playlist related to opps or core .
    And I'm watching your java playlist sir your teaching style is very osm And you are great sir 💝😍

    • @theblindprogrammer
      @theblindprogrammer 4 года назад +1

      If you are good at C, Java will be very easy for you. Learn Core Java first, like Primitives, Objects, Classess, Inheritance, Data structures, and those stuff. It will take you couple weeks since you know C. If you have any challenging questions about Java, please post, I might be able to help you.

    • @professionalprogrammer3324
      @professionalprogrammer3324 4 года назад

      If you want to learn Java ..First u need to learn the OOP's and then go for core Java ..it might be easy for u if u have knowledge in C..

  • @ashraf6850
    @ashraf6850 4 года назад +2

    Data type variable:type

  • @adityaWZM
    @adityaWZM 8 месяцев назад

    incredible video

  • @charlieagyei2925
    @charlieagyei2925 Год назад +1

    Very good tutorial. but the output "Hello" will be printed five times not six times.

    • @yvngrxxd9078
      @yvngrxxd9078 Год назад

      Yes hello will be printed five times, but it was print ( " hello " + I) where I = 6. It's because when it reached 6 in the loop, the loop stopped printing stuff

  • @ruthiie.y8696
    @ruthiie.y8696 4 месяца назад

    Wonderful ✨🙏🏾

  • @richatiwari7383
    @richatiwari7383 3 года назад +1

    You are just awesome!! 😭

  • @BituKumar-fn4fe
    @BituKumar-fn4fe 4 месяца назад

    Helpful

  • @ghita2003able
    @ghita2003able 2 года назад

    Best explanations !

  • @st4yclutch391
    @st4yclutch391 2 года назад

    Thanks

  • @Swagway177
    @Swagway177 2 года назад

    Idk how to say Thank You, but thanks well explained

  • @joshuaokafor8899
    @joshuaokafor8899 2 года назад

    Bro!!!!!! your too good

  • @arunks8162
    @arunks8162 Год назад

    thanks man

  • @pudabear4765
    @pudabear4765 2 года назад

    great video! thank you

  • @officialzylo
    @officialzylo 2 месяца назад

    the outputs you gave were wrong

  • @khaledalsayeh1231
    @khaledalsayeh1231 2 года назад

    Are there power point documents for subscribers on the site ?

  • @ljaykhan520
    @ljaykhan520 10 месяцев назад

    A great video ❤

  • @gyangaha109
    @gyangaha109 3 года назад

    Thank you.

  • @madikarim264
    @madikarim264 Год назад

    Right!

  • @normangasan
    @normangasan 4 года назад +1

    Thanks, but I have exam on April 1, please download videos before it🥺

    • @theblindprogrammer
      @theblindprogrammer 4 года назад

      What problems do you have?

    • @normangasan
      @normangasan 4 года назад

      The Blind Programmer I already done with exams, passed from all, thanks for asking🥳

    • @theblindprogrammer
      @theblindprogrammer 4 года назад

      @@normangasan Good to hear, I just wanted to help. If you have any Java-related question/challange feel free to ask.

  • @EdwinFlores-y6l
    @EdwinFlores-y6l Год назад

    ur explanation is Fucking incredible

  • @ritwiksaha8024
    @ritwiksaha8024 4 года назад +1

    can you please make a video on "for each " loop.....????

    • @theblindprogrammer
      @theblindprogrammer 4 года назад

      Yes, for each loop is shorter form of the long for loop. Here is an example
      String[] names = {"Bob", "John", "Adam", "Sarah"};
      // long for loop
      System.out.printf("%4s%15s
      ", "Index", "Name");
      System.out.println();
      for (int i = 0; i < names.length;i++){
      System.out.printf("%4s%15s
      ", i, names[i]);
      }
      // For each form
      for (String name : names ){
      System.out.println("Name: " + name);
      }

    • @Arfisto
      @Arfisto 4 года назад

      You can find it on arfisto! Wish you happy learning

    • @melitajm4286
      @melitajm4286 Год назад +1

      ​@@theblindprogrammercan u say which programming language u have used here ?

    • @melitajm4286
      @melitajm4286 Год назад

      In java
      for(int i = 0 ; i

    • @theblindprogrammer
      @theblindprogrammer Год назад

      @@melitajm4286 I used Java, which language do you want me to write?

  • @ashraf6850
    @ashraf6850 4 года назад

    Make a video for each loop

    • @theblindprogrammer
      @theblindprogrammer 4 года назад

      Yes, for each loop is shorter form of the long for loop. Here is an example
      String[] names = {"Bob", "John", "Adam", "Sarah"};
      // long for loop
      System.out.printf("%4s%15s
      ", "Index", "Name");
      System.out.println();
      for (int i = 0; i < names.length;i++){
      System.out.printf("%4s%15s
      ", i, names[i]);
      }
      // For each form
      for (String name : names ){
      System.out.println("Name: " + name);
      }

  • @sachithrawijesundara8841
    @sachithrawijesundara8841 3 года назад +1

    Superb..

  • @dinorossi6611
    @dinorossi6611 2 года назад

    Gotta love that heavy Arabic accent.

  • @juanperez-iz7lc
    @juanperez-iz7lc Год назад

    Better then Cydeo...

  • @mayankraj6201
    @mayankraj6201 Месяц назад

    habibi!!!!!

  • @maithilykutty1945
    @maithilykutty1945 3 года назад

    nice❤️👍

  • @munamuntipback
    @munamuntipback Год назад

  • @Altair.1187
    @Altair.1187 9 месяцев назад

    Java will be free.

  • @geektoys370
    @geektoys370 7 месяцев назад

    We open braces😬