Nested Loops & 2D Arrays | Java | Tutorial 23

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

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

  • @davidmalacaria753
    @davidmalacaria753 6 ปีที่แล้ว +96

    I hope all this work has paid off for you Mike, you deserve to be prosperous for putting this clear wealth of knowledge on here for the world to learn.

    • @DSeyit
      @DSeyit 5 ปีที่แล้ว +8

      Agreed, I can feel his ambition on teaching us every detail. I feel lucky finding his lectures. Currently I am a student, but If these lectures pays off in the future as a job or anything (I am pretty sure it will), I will definitely be contributing him from his website. Thanks a lot Mike.

  • @Chris-fh3qv
    @Chris-fh3qv 4 ปีที่แล้ว +23

    My lecturer spent 2 hours trying to explain this and you just broke the concept down so easily. There are some people who are just made to teach and you are one of them. My lecturer just gets lost in his own knowledge and doesn't realise he's talking to complete beginners. Thanks again.

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

    this has saved me for my computer science test tomorrow. I cannot express my gratitude enough. Subbed and Liked.

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

    SO many classes ask people to generate Sudoku grids, and having them display in a palatable way is the main thing I had a problem with. This helped. Thanks.

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

    For some reason, your videos are the most elucidating to me. I don't know whether or not it's because you don't switch between class files rapidly, but they are more insightful compared to the other videos I've watched. IMO.

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

    ffs, why do programmers struggle so much to explain basic concepts. This is the 2nd person, the other one being an amazing lecturer I had, that can explain concepts CLEARLY. It sounds like quantum physics on other java channels. this makes it simple and easy to understand. Thank you so much. Seriously, 99% of the people teaching on youtube are confusing people more than anything else. This is why we can't have nice things.

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

      cs major moment

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

    nice this 12 mins video is far better than my 3 hours college lecture on 2D array. clearly understand the nested loop concept and how to use in 2D Array.

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

    Thank you so much... been trying to wrap my head around this for hours... and when I found your video it’s SO clear... wish I could give you a hug, don’t stop making content like this!

  • @Sarah-re7cg
    @Sarah-re7cg 2 ปีที่แล้ว

    lol why have I spent so long just not being completely clear on this until I watched this video? I just subscribed. thank you

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

    Best tutor I've come across so far on TH-cam. You explain things really well.

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

    LIFE SAVER!!! excellent combinations of topics which are usually used in actual programs! && i dont have a hard time for the accent since most of the tuts are made by indians, thanks sir

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

    I pay for an exorbitant amount for college tuition to have Mike teach me on TH-cam. Hmmm.

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

      haha same here

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

      @Dan Trebune exactly only for degree and job LMAO

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

      Ditto. I have to hear the same concepts explained 4 different ways to get my understanding of some of these fundamentals solid

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

    I have done 3 or 4 programming courses and for loops has always been an issue for me. I did not really understand them before watching this video. Imagine, I just happened to discover your channel accidentally. Thank you, Mike.

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

    You just made me pass my ap comp science quiz, my teacher didn't explain it well. Thank you!

    • @King-vm2yk
      @King-vm2yk ปีที่แล้ว

      u prob have a job by now

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

    This mate was fxcking amazing. Explained it on a whole new level. That was a real boss teaching . Thank you very much.

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

    Mike you're really good at teaching! You have no idea how much it helps

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

    Eish dude, thanx bra, i have been trying to understand for the past few days, even had to download more e-books, I'm extremely glad you doing this... 👍👍 Keep it up, i have subscribed...

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

    Thanks dude, you're putting me through computer science in uni.

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

    Thanks, this was the most concise and clear explanation I found on TH-cam.

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

    The best programming teacher ever!!

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

    You explained this better than my college prof. Thanks man!!!

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

    Your explanation is really good and understandable. I was really confused of the working principle of the nested loop in multidimensional array. Really very thankful to you.

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

    Thank you very much. I have a much better understanding of 2D arrays now after messing around with it my self as well.

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

    life saver, nested loops are breaking my brain so this is helpful!

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

    Finally someone who explained it well!!!! Thank you!!!!

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

    Clear explanation i found to your video of what i looking for.. thanks to your video..

  • @Emma-dn3fk
    @Emma-dn3fk 6 ปีที่แล้ว +11

    This is so clear. Thank you thank you thank you!

  • @sanju-lb9rn
    @sanju-lb9rn 2 ปีที่แล้ว +1

    This channel is a GEM , Thanks mike.

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

    I like how he explained the every details now i get it 😊

  • @Grace-oh3rg
    @Grace-oh3rg 3 ปีที่แล้ว

    I am wondering do you give one to one tuition for Java.I am just starting to learn it through your videos it is helping understand many concepts in my course you explain well.

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

    You make learning Java so easy!

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

    i wish you're my programming lecturer in my campus.
    Gosh. If it was you, i would've never get C in programming

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

    thank you mike...i finally under stand..thank you soo much. this is soo easy to understand

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

    u explain so much better than my teacher

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

    Great explanation, you made it really clear, fun and easy to understand, Thank you!

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

    your explanation is awesome

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

    What an explanation..love it..

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

    Your explanation is really nice.

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

    Boiiii,, that was a very clean and nice explanation... thanks alot.

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

    its super clear thanks to you Mike. Thank you dude.

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

    Very good explained

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

    Thank you very much buddy. I was struggling grasp this particular thing and your explanation made it crystal clear to me. Thanks again in advance!

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

    Really great and clear explanation! thank you so much for sharing

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

    That was brilliant!Thanks Mike MasterClass!

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

    My ap test is tomorrow, praying to god this helps somehow

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

    Great explanation, thanks a bunch

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

    Mike!! thank you very much! so helpful! could you please add how to add, subtract or multiply matrices pleaaase!! it would be grand! ... and i wish i had started programming with a teacher like you in mu class instead of the one i have... jayyyyysus!! this is so clear! thanks for your time!!

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

    The other thing I want to ask is; can you use nested for loops to assign values to an array?
    So say I need a large array with 1000 individual values assigned to a 3 dimensional array. Can I use nested for loops (3) to assign the values. Because each value is basically value++. Starting at 1 and finishing at 1000. So say the array is [10][10][10].

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

    this helped me so much, thank you for this.

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

    Thank you so much! Your explanation and examples were really clear and helpful in understanding the concept ^^

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

    This explanation helped me so much, thank you!

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

    Thank you for the explanation, it really helped me understand :D

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

    Hi Mike, thanks for the advice. I'm looking for the correct answers for this question?
    You are writing a Java method.
    The method must meet the following requirements:
    • Accept a double array 
    • Return the largest value in the array. 
    How should you complete the code? To answer select the appropriate code segments in the answer area.
    Answer Area 
    public double findMax(double[] maxArray) {
    double max = maxArray[1];
    for (int i = 1; i < maxArray.length i++)
    if ( max max < maxArray[i])

    max == maxArray[i];
    return max;
    }
    Is this code correct and if not can you help me fix the problem?
    THANK YOU

  • @DK-en8it
    @DK-en8it 2 ปีที่แล้ว

    Bro thanks so much 🙏 🙌 for clearly explaining

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

    Thanks man u made it simple for me 👌👌❤

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

    Excellent

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

    Great explanation! Thank you a lot!!

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

    You're a legend.

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

    Thanks 🔥👍 its very helpful

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

    but how would you do this with user input?

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

    I was wondering why I was not getting the output of each individual array, I had set my second for loop to j < Num1Array.lenght this helped clear things up for me thanks!

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

    clear explanation

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

    I have so much love for you.

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

    Awesome video!

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

    Ultimate video best one tysm

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

    this is very clear

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

    Bro!!!!!!! Thank you so much 😭😭

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

    thank you so much. This video was really helpful! keep up the good work man! :)

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

    hello im confused on how j < numberGrid[i].length part
    can anyone elaborate on it further for me?
    especially on the difference between numberGrid.length to numberGrid[i].length

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

      numberGrid[i].length is taking each individual curly brace as i, while parsing through all elements of every curly brace. So in numberGrid.length what is actually being done - the variable i is any curly brace, .length just loops through each individual curly brace.

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

    Thank you 🙏 thank you 🙏

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

    Thanks a lot bro..........

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

    you helped me so much thx my dude

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

    Very clear thank you

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

    Thanks a million! more videos please!

  • @forrestkennedy5458
    @forrestkennedy5458 6 ปีที่แล้ว +1

    Thank you!

  • @syf7082
    @syf7082 6 ปีที่แล้ว

    thank you for being clear

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

    very helpful

  • @yoyo-ly4zk
    @yoyo-ly4zk ปีที่แล้ว

    God bless you

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

    thanks buddy

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

    this guys good

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

    the only thing i don t understand is why does : " i< numberGrid, and same with j : j < numberGrid. Why isnt it : i

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

    What is the name of the IDE program that your using in the video?

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

    I get it now… I love you.😅

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

    thanks

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

    Can you go more than 2 dimensions?

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

      Yes. You can put arrays within arrays infinitely.

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

    My teacher barely explains a concept and then for our project and hw we suppose to combine everything she barely taught and expect use to come up with the answer. Who’ll you should us how to actually use the nested for loop with a 2d array to combine both things.

  • @ivirus-xii6158
    @ivirus-xii6158 5 ปีที่แล้ว

    thatnk you man loved the vid

  • @IshuSingh-k7f
    @IshuSingh-k7f 5 ปีที่แล้ว

    Thanks, man.

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

    so smart like you

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

    thanks mate!

  • @Mike-zg9yh
    @Mike-zg9yh 2 ปีที่แล้ว

    bro thanks !!!

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

    thanks!

  • @viniciusseixas7205
    @viniciusseixas7205 6 ปีที่แล้ว

    Thanks man!

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

    how to print numberGrid[i].length separately in System.out.println
    just like numberGrid.length ?

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

      System.out.println("numberGrid length = " + numberGrid.length);

  • @KobraKai2
    @KobraKai2 6 ปีที่แล้ว

    EXCELLENT video,
    I am currently trying to make a 2d array, out of 3 string variables
    sent1 = my name is simon
    i want to put that sentence into a character array, thats one of 3 in a 2d character array
    HALLLP?

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

    Loop inside the loop

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

    Before, I was in disarray.. Now, I'm in thisarray.

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

    Its funny how quickly in the java learning process you understand that these youtubers have no knowledge of proper definitions that would save time and confusion for a lot of people. Still useful tho.

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

    when you typed int [][] numbergrid = new int [][], there was no example after this and no explanation on how to create the array instead you showed how to create one using curly brackets. so i was wondering if someone can help me with this or am i being retarded and that is how you create a 2d array

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

    yeah gg I don't get it