ArrayList in Java Tutorial #36

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.พ. 2025
  • $1,000 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE. See if you qualify for the JOB GUARANTEE! 👉 bit.ly/3HX970h
    This ArrayList in Java code will get your working code faster! ✅This is an ArrayList in java with examples.
    Learn java in just 13 minutes: • Learn Java in 14 Minut...
    🌅 Source Code - github.com/ale...
    ArrayList fruitList = new ArrayList();
    This is how you create your ArrayList in java. Now, you can type fruitList.add(), fruitList.get(), fruitList.clear(), fruitList.remove() and much more!
    THESE are the main differences between the array in java and the arraylist in java. You can easily, add, remove and modify ArrayLists, but it's much harder with Arrays. That's the big difference between Arrays and ArrayLists in Java.
    This ArrayList can be trick at first... But SURELY you'll get it :) If you followed along, congrats! You learned-by-doing!
    I hope you enjoyed this tutorial on how to use ArrayList in Java! I like to have a nice mix of tutorials and actual projects for you all :)
    Do you want to learn how to code from scratch, in Java? Check out my Java Tutorial For Beginners: • Coding For Beginners I...
    What are you using java arraylists for?
    Full Java Tutorial For Beginners Playlist: • Full Java Course by Al...
    Free Tips: bit.ly/3U6HXcb
    Disclosure: The Springboard link provided is linked to my affiliate account & supports the channel.
    ~
    Alex Lee

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

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

    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

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

      why did you stop uploading videos bro 😭😭

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

      i really enjoy your videos ngl your videos was the reason i pass may data structures exam

  • @pluto-nw5de
    @pluto-nw5de 4 ปีที่แล้ว +348

    You literally made a 3 hours lecture down to 6 minutes. Thank you!

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

      A 3 hour lecture on arraylist? Jesus christ.

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

      The teacher must’ve been lecturing at .25 speed

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

      @@clublulu399 thats exactly what i thought. 3 hours on just that???? LOL

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

      I was gonna say this.I missed my classes one day and I come here to see the video about ArrayList make my life so much easy

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

    My teacher literally gave us a project about this stuff and was like “figure it out”

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

      Thats what programming is though, if teacher helps too much in this field u wont learn much even if it doesnt seem reasonable

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

      same here! this was soooo helpful!!

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

      YEAAAAA I MEAN OUR TEACHER IS BEYOND CRUEL

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

      Taking time to dissect the code step by step has always been challenging yet rewarding. With comprehending the concepts, you'll quickly pick up the rest of whatever area you're studying. I recommend locating broken code on the internet and fix it up as a random challenge.

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

      Great way to learn IMHO

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

    I have to say, as a beginner, the way you break things down, give examples, and the layout of your videos that show what you're typing and even the shortcuts, are so very beneficial. Thank you for all of the awesome tutorials.

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

    The perfect video when you haven't touched coding in a month, have 2 months' work of assignments due in half a month, and this year's AP test only covers up to arraylists.

    • @eeeeeeeeeeeeeeeeeeeeeeeee-s3p
      @eeeeeeeeeeeeeeeeeeeeeeeee-s3p 4 ปีที่แล้ว +2

      yooo!!! same here man!! studying for the bloody AP exam

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

      @@eeeeeeeeeeeeeeeeeeeeeeeee-s3p Nothin like the last minute

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

      @@confusedskeleton5486 Same here

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

      @@noahberman6992 my only thought, why didn't we start with this?

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

      same im studying the day before the ap test

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

    Learning so much from all of these 4 years later. thank you for all you have done with these videos. you really are amazing!

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

    Simple, informative and straight to the point - just the way good tutorials are meant to be. You covered 2 hours of my reading material in five minutes. Good job and thanks for the help!

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

    your tutorial videos have been exponentially helpful as i just enrolled in a computer science degree and know nothing about programming. I will definitely recommend your channel as it is the most clear cut, example laced, description on what the hell i'm doing, or trying to. I appreciate your help.

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

    Did i just spend 2 hours learning from my lecturer's slide and understand nothing when there is a less than 6 minutes video and i understand everything. Thanks alex for the great video

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

    Thanks for the vid, Alex! Cramming for my programming final tomorrow

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

    I bet he will be with 1 million subs in next few years....

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

    I can't believe I learned array lists and 2d arrays in less than 5 minutes, Alex you are amazing and I appreciate what you do, your explanations have really saved from tight spots

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

    this is a legit java tutorial, short and on point, good job!

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

    Bro you litterally helped me for 3 years now in the uni. You are a legend

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

    🔥🔥🔥🔥Thank you very much sir, thats my whole semester saved in 5 minutes.

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

    I've been taking OOP for 8 months and I NEVER knew this. You're amazing

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

    Very professional and well explained. Thank you.

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

      Mue Ja Happy to help!

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

    As much as I despise Java, I love your tutorials, man. They're straight to the point, and don't waste any time. Thanks for making them!

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

    I wanted to know more about lists
    But now I want to know more about you

  • @Maxwell-il3pv
    @Maxwell-il3pv 3 ปีที่แล้ว +1

    i am stil shocked by someone on youtube can teach better than an AP teacher

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

    i can say i am NOTHING in java without your channel >> BIG LOVE from saudi arabia

  • @Preposter
    @Preposter 6 ปีที่แล้ว +36

    This was really interesting and good to know!
    ArrayLists would've helped me out a lot a while back.

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

    I am loving the vibe of this channel, you just earned a subscriber today.

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

    He explains all the topics in a fun and straightforward way. It's a beneficial TH-cam channel.

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

    I know ArrayLists, I just clicked this video to look at the keyboard, I love keyboards. But the links you provided at the description are so helpful that this video helped me a lot. The links on the description are more helpful than so many other coding videos on youtube :D. I just liked the links and wanted to thank you.

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

    Very nice and straightforward! Thanks!

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

    I had 0% motivation and kept re-reading my book 326534634543 times thinking that it was so complicated, but you explained it so well in just a few minutes and now I find it super easy. Thank you so much for your work!!

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

    2 hr lecture from school turned in 5 min. Goat

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

    Love the music, the sound of your keyboard, the environment, and of course how helpful you are!! Thank you for these tutorials :)

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

      such wholesome energy from this dude right??

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

      ThisIsMonarchy :P exactly!!

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

    Learned more in this video than a lecture that had 60 pages of arrays and arraylists

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

    ♥️♥️♥️Watching 2 hours before paper. Thanks buddy

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

    The way you teach, is the same as business model, for example first creating a demand for Arraylist by bringing up a problem and then giving the Arraylist as a solution. It is best way imp

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

    LOVE THIS GUY LEARNING PEOPLE TO CODE

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

    I like your short and concise style of explaining. Sure you dont mention every detail (which is impossible anyways)and there are some important things left unsaid, but if you just want the basic information and then work with it yourself, which I think is the only way to truly learn programming, this is perfect.

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

    Have my midterm exam in the morning. This video is the best one out here.

  • @RyAn-dq9sm
    @RyAn-dq9sm ปีที่แล้ว

    folks were just jumping into how to do it, but with the simple examples without context, I was just getting hung up on, "why?". Thanks for clearing it up!

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

    This is the easiest arrayList video! thanks Alex. Subscribed!

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

      Nichiwa Kelvin yay! Thanks!

  • @txfu-
    @txfu- 4 หลายเดือนก่อน

    didn't expect arraylists to be so useful!

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

    binge watching Alex's tutorials for I have my exam in OOP tomorrow. Kudos, the tutorials are all great and easy to follow along!

  • @sleeper_3.090
    @sleeper_3.090 5 ปีที่แล้ว +9

    This was a great video, short and to the point.

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

    Very easy to follow and hear clearly unlike a lot of tutorials out there. Thanks!

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

    best Channel for beginners .funny and can easily explain his point.

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

    it amazes me how easy coding now becomes with your videos OO

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

    i am assigned a project and you are a saviour.

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

    Your channel is my best resource in learning Java,

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

    I really like his outro: You can be anywhere in the world but you're hear with me... what a cool guy.

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

    just wow , i watched this after watching my teachers lecture and I actually learned more from you . Thank you !

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

    I love the music choice, nice vibe while learning🤟

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

    Thank you man, I was pounding my head against a wall trying to understand why I need to learn both of these but you explained it perfectly.

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

    Very credible! I'm a first year college student and you are the most credible instructor I know online. Thank you very much sir!

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

    your the best if not you I would never continue my studies thanx alot!!!♥♥

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

    Iam a fresh CS student , been watching your videos for a long time , thank you for sharing and I hope one day you will return to programming.❤️

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

    thumbs up for the mechanical keyboard sitting on top of the crappy mac one. OH and for doing what my college professors couldn't. You're seriously good at this.

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

    That's amazing! I just tried to mix everything that Iearnd from you, so I changed this code to be able to get new fruits from the user and add it to the existing array.

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

    Thanks for the video. Seems like online classes are requiring us more and more to seek this type of content ourselves.

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

    Made it look so much easier and useful with ArrayList.. thanks good content

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

    You are my teacher I can reach out to anytime I'm having some difficulties in java. Thank You very much for impacting a lot to my life.

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

    Great tutorial ! like really nice you're the youtuber that really deliver all the programming concepts with the best method possible I hope that your channel grow and have a success you clearly deserve !!

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

    i got selected for a new java training through a requalification program by the employment exchange. though my trainers at the uni are proficient the fact that i'm an english native learning java first time in a different language at speed that does not afford practice had left me seriously doubting my cognitive abilities. it's in your videos that I actually feel that java is really easy and not such a 7 headed monster as I was first inclined to believe in while I was seriously contemplating jumping out of the ship if not for a colleague who helps and ofcourse your lovely easy to understand videos .

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

    Thanks Alex. I appreciate your micro-lectures.

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

    Very thankful you go back and explain stuff. I've watched these in order of Java Basics 1 - Java Basics 2 and once In a while something might slip by that was explained differently or simply shown In a later video more ahead In the playlist but maybe made earlier.

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

    thanks to this video I finished a homework so THANK YOU SO MUCH

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

    thank you. I have a bad prof and I need this course. your tutorials have been extremely helpful

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

    Man, this is SO helpful for the people trying to learn during quarantine. The way you explain it makes it super easy to understand certaing concepts and how the codes actually work when you hit "run". I know its an old video, but keep it up man!

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

    This guy deserves more fame. Love from India☺👍

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

    Thanks, I'm thankful I found your channel. I just finished java course on sololearn app but watching the viedo makes me fully understand the methods, syntax etc. like how to use it or when to use. Again thank you it helps a lot.

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

    hi man i just wanted say thanks so much for making videos, i'm a uni student doing computer science and you really help me get a basic understanding of things. just wanted to say that you are a true hero to me! :)

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

    Alex thanks for those videos, I'm 34 years old man and doing my computer science degree currently in my second year we had to learn Java over break time between the years I'm doing the course on udemy but brother the guy makes it hell of a complicated :D and I come to your videos to find simple version of what he said :D Thank you so much for those videos it help a old guy like me to learn it better so I can hopefully graduate this and get a job that I dread of :D

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

    I know this is a year old but man you save me on my projects thanks for making coding understanding!

  • @Afghanistan_edits-
    @Afghanistan_edits- ปีที่แล้ว

    Great way of teaching I can learn it quickly from him short videos but more easy to understand thank you so much.

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

    Thanks for your course and free teaching. I came in USA CA to see you man.

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

    He deserves way more subscribers.

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

    you make the best videos . short and fun to watch!!!

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

    I really like the way you explain with your struggles to understand in your early life... like I'm going through now...thank you 😀.I too like the simplicity in your explanation

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

    love the fruit analogy!

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

    Great job. Thanks.
    Please continue to make these videos. You're a good teacher.

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

      Rishen Gopaldass thanks! :)

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

    Those videos are awesome! Perfect length to always learn some new intererstig stuff while not more information than you can remember.
    I also love the way you explain things, for me your videos are always a lot easier to understand compared to other channels.

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

    The video was great on its own, and I appreciate the lesson. That said, the subtle subscription plug(where you worked a subscription reference into the lesson by saying that array lists are probably how they handle subscriptions) was fairly brilliant and got a chuckle out of me. Whether it was done consciously or not, its what got me to subscribe, lol. Thanks again

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

    best explanation ever! I finally understand the difference now. Arraylist is so much better. Thanks!

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

    Very very helpful! Please continue to make these videos!!! ☺

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

    I really like having be A programmer like you dude 👍🏻

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

    This was so helpful in understanding the differences in Arrays and ArrayLists and when they should be used

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

    Thank you so much!! You really make it so simple! 🥰

  • @Neon-xf9cl
    @Neon-xf9cl 3 ปีที่แล้ว

    Alex! You are awasome! Your videos are really helping me to pass my CS class.

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

    Just finished watching your 6th video today. You just taught chapter 13 @ 14 from my text book :)

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

    Thanks man! Short and sweet, explained all important functions and made it easy to understand.

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

    Your content saves my life right now, with the upcoming exams :D

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

    Your tutorials are always so genius. Thank you so much for making learning Java so simple

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

    Omg thankyou so much, very clear, in my java class this part is not being exained this clearly 😂😂

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

    Amazing video srsly. I really love how you make short video that explain everything instead of the 10+ min others are doing on youtube.

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

    Been watching your playlists for a bit and they are SUPER helpful!!! Thank you so so much Alex! ❤

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

    i watch ur vids instead of ones assigned by my teacher lol

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

    Hi! I'm a computational math student and I found that ur video is so helpful :) You just got a new subscriber :) Thank you so much for helping me understand the basic of ArrayList and other stuff in java ❤️

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

    Thanks for your videos! It helps SO much that you do a basic step-by-step and explain each thing you do and show direct results in real time.
    Your content is very easy to follow and you get your point across in a simple and digestible way.

  • @yursk12
    @yursk12 6 ปีที่แล้ว +10

    Your vids help me so much when in programming for class. Thank you bro

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

    Absolute Legend, I hope the best for your future!

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

    passing an arraylist to a method? Keep up the great work!

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

    OMG.....I WASNT ABLE TO UNDERSTAND THIS TOPIC AND I JUST SAW THIS, IT I ALREADY KNOW THE TOPIC. TYSM

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

    love your videos. They're really helping me understand content better

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

    Thanks alot man.. Just saved me 3 hours of my life