2D Array Java Tutorial #11

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

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

  • @alexlorenlee
    @alexlorenlee  Год назад +11

    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

  • @faststudy2425
    @faststudy2425 5 лет назад +296

    Most underrated RUclipsr I have ever found

  • @stevenfinston8138
    @stevenfinston8138 4 года назад +59

    I teach computer science at a high school. Your video is outstanding. I have embedded it in our online curriculum and I use it as the Do-Now introduction for 2-D arrays. Thank you so much for your commitment and efforts in helping make programming in Java accessible to all students.

  • @00222317
    @00222317 5 лет назад +113

    I just started my first semester at ASU in August and we are getting into 2D arrays right now. I found your channel a couple days ago, and I dig it. I can really relate to your story. I was feeling the same way before I found this channel and it really boosted my confidence. Thanks a lot man for your honesty and for the lessons. I hope the channel takes off for you.

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

      Hi Snowden, i am also an ASU student. The class was CSE 110?

  • @sheruniboteju7636
    @sheruniboteju7636 3 года назад +12

    Best part of this was 1:41 but seriously you are saving lives here man

  • @nostalgiacademy7378
    @nostalgiacademy7378 2 года назад +14

    I was a person that was interested in coding and then actually going to school for it kinda took the magic from it, people like you remind me why I got into it in the first place. Please never stop making content, your personality and vids are gonna be huge. Thanks for the great vid :)

    • @dancingrook8553
      @dancingrook8553 2 года назад +3

      For sure, I know what you mean. We had a programming class in highschool and I was initially interested, it was super basic stuff off memory HTML etc. However I learnt a grand total of 0 from the class. The teacher each lesson just gave us a powerpoint to work through and sat on his laptop the whole lesson and he never said anything and never looked up from the laptop. It is partially my fault as I could have very well learned something from the powerpoints but being a kid of course if the teacher is being lazy and the rest of the class is just playing games, naturally I joined along lol. Its a shame really. Luckily Alex does a great job I've learnt more from him than I ever learned off my IPT teacher lol.

  • @JTBanks
    @JTBanks 5 лет назад +34

    It's so ironic how you mention several times how teachers and TA's made things more confusing for you, because it's exactly like that for me. I learned 98% of all my java knowledge through you and Michael Fudge :). Thanks Alex! Btw I had a theater project using 2d arrays, very cool!

  • @nicksavchenko9490
    @nicksavchenko9490 4 года назад +8

    I must say that your explanations are making everything so easy.
    thank you very much for this channel! since I stumbled upon it,
    every subject that I need to learn to my course at the university I'm learning from here
    instead of trying to understand the poor explanation of my professors.
    Every friend of mine who's struggling to understand a subject I refer to your channel
    and they all praise you.
    Greetings from Israel!

  • @mjd_my9
    @mjd_my9 11 месяцев назад +4

    I love how u really make these videos more understandable
    Short, fun, easy to understand ur making programming more fun

  • @ryanelkins9682
    @ryanelkins9682 4 года назад +4

    Trying to survive my 8 week college course in Java and you made it a little bit easier. This week is Arrays and i might use some of this knowledge, thanks alot.

  • @80sGameGuy
    @80sGameGuy 5 лет назад +17

    Thanks, I appreciate the large font so I can watch while exercising.

  • @valjohn6870
    @valjohn6870 9 месяцев назад +1

    Wow 2 minutes throughout this video and I already have an understanding of this thank you for taking the time and effort to make this!

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

    Alex, I wish you were my instructor. I am a beginner, I am so confused in my class. Glad I found you- you break things down and make it so much easier to understand. I like the way you pace teaching. Great job!

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

    Your videos are insanely helpful , you go straight to the point and keep things as simple as they can possibly be. Thank you.

  • @Cablur
    @Cablur 4 года назад +4

    Thanks again man, this is so damn good to understand!
    The longer I learn coding the more I understand that the only reason why people never learn to code or just quit it pretty fast is not because coding is hard to learn, it's because the tutorials are bad!
    I often have to writ stuff down to actually understand what's going on and what specific code does, and when I understand what it does I like to explain it to my self in a metaphoric way. Using this method I can strengthen my knowledge and put the new stuff deeper in my memories.

  • @SkyHighMelody
    @SkyHighMelody 3 года назад +2

    Amazing Tutorials. Easy to understand, straight to the point, no bs theory I'm never going to use. Just perfect

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

    Yes I have just finished the second one right now at 3:30am and starting the last one as I have to read a file and print out the results in a 2D array... Thank you Lee you have helped out so much. 😃.

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

    i got a java exam tomorrow and its about 2d and 1d arrays and abstract interface this video really helps to solidify my understanding thx i am a new fan and subscriber

  • @tasneemabdkhair5746
    @tasneemabdkhair5746 4 года назад +3

    I've truly been blessed by coming across this channel. THANK YOU for making me enjoy programming way more than I did before!

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

    The AP exam is tomorrow and I decided to learn java from 0 because I had no time, nor the money to take a course for a year. In fact I took 6 exams without the courses and tomorrow is my last exam, csa. So I am really grateful: THANK U! Greetings from Colombia. Sorry for my english, I really hope it was better in my essays; if not I'm screwed hahahaha

  • @rebechkah
    @rebechkah 2 года назад +1

    I have a project where I have to code a game of connect four using 2D arrays. At first I was stumped, but now I think I have an idea of how to do it once I saw your first four loop and realized that's how you get the diagonal!

  • @luisriveragonzalez9052
    @luisriveragonzalez9052 3 года назад +2

    public class AlexIsTheBest{
    public static void main(String[] args) {
    boolean cannotThankYouEnough = true;

    while (cannotThankYouEnough){
    System.out.println("Thank you!");
    }
    //Yes, I know I did not stop the while-loop, but that is because I cannot thank him enough ;)
    }
    }

  • @robabahedayati73
    @robabahedayati73 2 года назад +1

    I am so happy to find this channel. I am streesed because of my projects and exams but your explanation would help me. Thanks for amazing videos.

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

    Thanks Alex. About 2 years ago I first learned this at uni and it was so hard to get it. It made me feel so depressed. But now with your video I can understand it. Thanks again Alex. You are awesome!

  • @ivootero3410
    @ivootero3410 5 лет назад +1

    Man thanks for the videos, you have a simple and non-technical way to approach all the topics!!
    Greetings from Argentina, keep up the great work!!!

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

    Wow, I don't know why this was such a hard concept for me to grasp in class but this video just made it instantly click in my head. Thanks a lot dude.

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

    took me the longest time to notice you're typing on an external keyboard on top of your mac :'D
    thanks for all these lessons man! you're a great teacher!

  • @HamzaKhan-xu4pu
    @HamzaKhan-xu4pu 4 года назад +1

    Thank you for your help! This is the best recap I have received throughout my time at university!

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

    Ive got a bad cold and my first coding assessment in two days. Thank you sir for this.

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

    Didn't realize a screen resolution was a 2D array. Mind blown, it totally makes sense. Thank you!

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

    Just started me Java 2 class at fiu and you saved me with learning how to work with 2d arrays

  • @AmongUs-qt3uo
    @AmongUs-qt3uo Год назад

    The diagonal part was so smart brooooo thank you so much!! I was stuck on printing diagonals for 1 hour !

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

    This video made me understand how for loops and any type of an array really work together. Great video!

  • @ArtificialIntel422
    @ArtificialIntel422 5 лет назад +3

    You speak in terms I can understand as a student.. And how it feels

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

    instructors explaining 2 hours and my mind confused , Alex explaining in 8 min i say 1000000 WOW :) thanks Alex keep moving with other languages it's so much fun

  • @garbayoo
    @garbayoo 4 года назад +3

    The best channel in the world? ALEX LEE!!!!

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

    In my second semester, it hasn't started yet but god your videos are so helpful. I've already understood all the concepts and i'm gonna ace this semester too thanks to you. Keep up the amazing work !

  • @HighdroLex
    @HighdroLex 6 лет назад +5

    I was going through my old yahoo emails from 2012 and I saw that you had sent me an email asking me to check out your channel, waffle gaming. back then i had subbed and i've lost the channel when i decided to migrate to Gmail.
    Here i am now with a different email and even my own channel. its awesome to see that you've changed so much my dude.

    • @alexlorenlee
      @alexlorenlee  6 лет назад +2

      RodCaster Gaming wow that’s so crazy! I’ll never forget all the great support from waffle gaming. And we’re still gaming :) thank you for stopping by again and it’s great to see your history with us. Welcome back :)

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

      @@alexlorenlee A great programmer and also a Gamer, all that's left is to find out you watch anime, RESPECT ALEX

  • @RainSage
    @RainSage 8 месяцев назад +1

    I have a noob weather data 2d array project and it’s so confusing your videos help me understand a little bit more

  • @labrandom8612
    @labrandom8612 5 лет назад

    I'm just glad I can actually take something from the video. I'm making a blind minesweeper game to help me really understand this. Thanks!

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

    Awesome , currently working on a project where I need to use 5 different users to login then logout then to the next user . All different users . Your Help is always appreciated .

  • @liaarakal2130
    @liaarakal2130 3 года назад +2

    u should do a video on shifting 2d arrays, like moving them one to the left, one to the right, up and down, etc.

  • @MrLovez
    @MrLovez 4 года назад +70

    " 'Array' starts with 'a-row'", genius!

    • @ORiONGods
      @ORiONGods 3 года назад +2

      or X*Y, lust like your resolution on your screen. Horizontal x Vertical

  • @juliangarcia-schroeder3192
    @juliangarcia-schroeder3192 4 года назад

    Best coding tutor I've found thanks bro

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

    All I needed was to figure out how to print the damn thing and now I know, thank you!

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

    Man, you are good at explaining things. You would make a great teacher, if you ever decided to become one. Thanks for the tutorial!

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

    //attributes
    String Alex = "best java teacher";

  • @mgray999
    @mgray999 5 лет назад

    This is really helpful, and I really like your video layout. Your mention to like the video is subtle, and the keyboard and music is a very nice touch.

  • @sammamrariana5880
    @sammamrariana5880 12 дней назад

    thank you so much!! you are such a hero indeed- not all the heroes wear capes!

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

    Glade to have such an excellent youtuber making this kind of videos these are very very very useful for So many people Continue like this all the best 👍

  • @tigranbdoyan
    @tigranbdoyan 4 года назад +12

    Hey man I really like your content and I love how you explained 2d array's in this video, but do you have to have that music playing in the background its kind of annoying. Still though this really helped me in my comp sci class where my teacher couldn't explain this for the life of him so thanks.

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

    Thanks for this! Also, the background music was awesome and the mumbling around 5:40 was super funny lol

  • @mohammedsadiq1567
    @mohammedsadiq1567 5 лет назад +1

    1 request🙋‍♂
    Could you implement a linked list using OOP concepts
    And one operation per video
    1.Add to the end
    2.Insert at head
    3.Insert in between nodes
    4.Remove from end
    5.Remove from head
    6.Remove from between
    7.Display the items

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

    Step 1. The program should ask the user to enter what row and seat number to reserve. Indicate
    an ‘X’ mark if the seat is reserved.
    Step 2. Repeat Step 1; the program will stop until the user enters a negative number.

  • @gabrielpenkert667
    @gabrielpenkert667 4 года назад +3

    Very nice explanation! Just a little mistake with a number inside the second array - *lotteryCard2 [2] [2], but as I said: Nice!

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

      but why was there no compiler error? or basically, the extra row and column were empty so didn't matter?

  • @rahulkaura135
    @rahulkaura135 5 лет назад +2

    Thanks this really helped me learn 2d Arrays!

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

    The keyboard clacking is so satisfying

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

    I'm in accelerated OOP class for freshman year and working with arrays as of now. I'm doing something involving the Game of Life code and programming it into java, but this time us individually have to write the helper class code for the grid that writes the pixels, and checks if the pixels have already been printed, ecx. It's a bit confusing, but after this video, I think I have more confidence in accomplishing this assingment. I hope I can eventually. I am severrly falling behind in this class.

  • @estradarigo8
    @estradarigo8 7 месяцев назад +1

    Hello, I do have an assignment for a 2D array, it is suppose to print two names the three columns should print the number of upper case letters, the number of second letters in the word, and the third the number of vowels in the words.

  • @VirtualVisionStudiosOfficial
    @VirtualVisionStudiosOfficial 5 лет назад +4

    Awesome video! I am very new to java and coding for all that matter. I understand the for loops and looping through the array. With i, it is the index and going through the index of the array but towards the end of the video, you write a second for loop and use j instead and end up getting the entire array printed. How does that work?
    EDIT: Nvm, Watched the nested for loops vid Lol

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

    As someone who teaches math and computer science in high school, I’m almost certain that 2D arrays stem from the properties of matrices, a mathematical structure that many of us learn a little bit of in Algebra 2 or Precalculus.
    This is why I often encourage any students taking CS classes that they take Algebra 2 as a co-requisite, at a minimum.

  • @tonyahales4575
    @tonyahales4575 4 года назад +4

    Great video, thanks. But I have a question: how to show these numbers in a form of a table?

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

    Manh thanks for all your Java videos Alex!

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

    Thank you Alex. your videos are really helpful. Next month am starting my second year, am really looking forward to watching your videos

  • @d1m216
    @d1m216 6 лет назад +6

    Thanks! You're great, keep up the videos! Happy Coding :D

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

    Ohhhh men you save my life!!! thankyousomuch,!! I'm from the Philippines

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

    I really enjoy your content and attitude. You make a really good tutor!

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

    This video induced epiphany for my assignment

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

    Well I never hit the subscribe button as fast! Thank you

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

    most amazzzzzzzzzzzzing teacher evvvvvvvvvvvvvvvvvvvvvverrrr

  • @TheFeryme
    @TheFeryme 2 года назад +1

    Watching your video in 2022. Incredible work. Thank you so much, and say hi Ace and Duece for me 🐶

  • @hanzong4243
    @hanzong4243 5 лет назад

    Thank you Sir! please keep doing videos. You can help many more beginner programmers like me more power!

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

    Hi! I just wanna say your programming tutorials are really great. It helped me a lot. Thank you. Anyway, if you ever have time to make a tutorial about Java and Database connection, that would be really awesome. Thanks again.

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

    You explain this so much better than my teacher

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

    Thank you. You make it so easy to understand!

  • @muzzy4039
    @muzzy4039 5 лет назад

    Video made it much much easier to understand thank you 🙏

  • @glendonswift2289
    @glendonswift2289 Месяц назад +1

    Good day, I want to populate a combobox from a file. How do I get a 2d array from the file?

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

    Your channel help me a lot! cause I am new in programming worlds! Thank you so much!

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

    Ok I knew about multidimensional arrays but that example of the screen blew my mind now I.know where it gets implemented

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

    thank you for your claer explanation , yes tommorow i have a lap session

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

    If you name your variables in the for loops like 'row' and 'column', its gonna be easier for people to understand what is happening. Also there is so much more to know about 2d arrays so that you can solve problems, I think its impossible to cover in a 9 minute video..

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

    I have a rail fence cipher assignment using 2D arrays to complete. Any advice or uploads about them would be amazing. Keep up the good work

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

    Thank you so much, Alex. I have learned so much from you.

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

    My teacher gave me a homework on matrix but I forgot how to do them😅 so I came here and yes, it helped a lot

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

    Hello, want to say you are a great teacher. I'd like to suggest turning off the music in the background since it's distracting for us ADHD folks as it's difficult for us to channel our focus on the concepts you are teaching. Keep up the great work!
    PS: Thanks for teaching me the OOPS concepts in such an easy to understand way. Really helped my interview.

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

    Alek, you are a blessing.

  • @The.Need2Know
    @The.Need2Know 3 года назад

    Alex I really wanna say thank you no lie

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

    Need help and guidance with doing the coding for this: Create a two-dimensional array of type double to contain the three different SD Marks (JD521, PRG521, and IP521) for six different students. A single array of type String must be used to store the student names (Maxwell, Carl, Gerhard, Paul, James, and Cena).
    Allow a user to enter in a number, ranging from 1 to 6, which will represent the student position in the table MCSD max and present the marks for each respecting module. The program can only stop when the user enter a number greater than 6.
    Printout the student name including the JD521, PRG521, and IP521 max, the total of marks and the average of all marks. Use a condition statement to decide that the student has passed or not (Pass rate is 70).

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

    I know it wont help you now anymore but at 4:50 there is a mistake in your code, there is 2 time 2/1 and not once 2/1 and 2/2

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

    Really helpful explanation

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

    Super great content, Alex!

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

    Oh my goodness I understand now!!! I get it!!! I see what’s happening!!!

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

    Can you give one example with 2D array by identifying even and odd number and calculate the sum of even and odd numbers. Thanks Alex you are the best!

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

    your website provide great help to java beginner :) keep it rocking~~

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

    I have an exam tomorrow on 2d arrays, arraylists, and methods, I already watched the other videos haha

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

    thank you very much for good good goooooooood explanation forever,BEST TEACHER!!!!😊😊😊😊😊😊😀😀😀😀😀

  • @JonasElias-di5ub
    @JonasElias-di5ub 4 года назад

    Excellent Master in java

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

    finally i get it
    thank you, Alex

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

    But you can't use the fixed value everytime in loop like 3 some times arrays have different values like arr[ 0] have 3 values and arr[1] have 4 values are[2] have 2 values now you have to use for(j=0;j

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

    Alex.....You are the best.