Stack Java Tutorial #65

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

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

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

    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

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

    Hey Alex. Yes, the video game visual was fine. I probably would have gone with the cafeteria plates visual, where every time you take a plate the stack moves up so the next plate can be taken, etc. When you put the washed plates back, it pushes down the existing plates. That's how it was explained to us back in the 70's.
    On another note, sharing 'why' you would care about stacks would be useful. I imagine one might use stacks (FILO) for such things as reversing things you did in your app, like the UNDO menu item we often see in programs.
    Out of curiosity, what do you use Java for? Program any Windows programs? I'd sure like to see more videos on how to create programs for the Windows OS that NOT console apps, but GUI programs. Don't see many tutorials on that. Everything is mostly teaching in the console. Who wants to run console programs on Windows?
    Thanks for a wonderful and informative video. Keep up the good work and get this channel to grow!

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

      Thanks for sharing great examples for stack implementation in real time (undo).Really helps a lot.

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

      The pile of dishes is a better way to explain the concept.

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

    The way you teach is so awesome and feels just right. You not only tell people the theoretical terms and how stuff works, but you give us real-life examples, stuff we can literally grab on. This makes learning so much easier and fun.
    Thank you!

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

    I would be honest, the way you explain coding with real life examples, it is fabulous.

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

    Best java tutorial on youtube so far. can't wait to see the GUI tutorial ...
    hope your channel grows soon!
    I can only help with subscription, views, thumb, like, and comment ...

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

    You are literally better than my professors at university. Plates be damned.

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

      Definitely. I mean, my teacher taught us stacks using static arrays when there's already a class on Java.util that we can use for that! I agree that it may be important for us to visualize how stacks work but the method used on this video is so much simpler and direct. I think that, as programmers, we do not need to reinvent the wheel every time we program.

    • @KeilyKapoor-p7m
      @KeilyKapoor-p7m 2 ปีที่แล้ว +1

      I agree, my professor demotivates me to learn programming. But watchng such a good explanation helps me)

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

      @@gabrieldenobrega In my opinion when you're still learning it's better to know how data structures like stacks are programmed in order to see how it works logically.

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

      @@oshito Nowadays I see why he wanted to teach us that way, I think I was just frustrated at the time.

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

    Awesome video, just went through HashMap Stacks and Queues from you and it was so easy to understand with the examples. Coding at the same time with you makes me remember them. Keep it up!

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

    This is great and the real world visuals really keep things clear

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

    Hi alex! I'm a computer science student and watched different videos related to java, but you make Java easier for me!

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

    I love your videos! I was doing LeetCode and came across a solution that used Stack, which I had never heard of. Thanks to you I feel like I have a basic understanding now. Thanks dude!

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

    The video game example for stacking was excellent. You are a fantastic tutor Alex!

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

    you explain this in 9mins what professors take a whole lecture ty

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

      Are they doing it in more depth?

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

      @@vladkuprienko7162 I learned this in intermediate programming but the professor had a hard time explaining it so when I took advanced it was confusing

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

    That's a very clean explanation tutorial for java stacks. The way you explained was neat and easy. Great man.

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

    congrats m8 for you new office space.. wish you best of luck for your future endeavors

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

    Excellent video explaining Stacks! Never understood what it meant till after watching this video. Thanks loads!

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

    Awesome video! The video games is a great analogy for showing the functionality

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

    Hay Alex,
    Im your student...
    You are very Good teacher.
    Simple and accurate.
    Im watching all of your videos one by one. And have reached on this.
    I wish you would teach us android studio, if possible.
    Thanks.

  • @NamNguyen-ir7gt
    @NamNguyen-ir7gt 3 ปีที่แล้ว +1

    Thank Alex a lot for helping me learning java in easiest i have ever watched

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

    I just wanted to let you know that even after uploading this video 6 months ago. You are still teaching people. Thank you so much. Yes, the video game stack did help out a lot.

  • @Chris-rw7zh
    @Chris-rw7zh 3 ปีที่แล้ว +1

    The video game visual was incredibly helpful, thank you Alex and I hope you are doing well and happy with your newfound passion :)

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

    the best explanation ever seen. thank you Alex

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

    All of your videos make my day. But I also learn from them. Keep up the good work Alex!

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

    Wooow all of your videos are explained clearly and understandable thanks man🤟

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

    best java tutorials ,very well explained

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

    The video game visual was perfect for understanding how stacks work.

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

    the video game example is really helpful! thanks a lot!

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

    Just discovered your channel recently, awesome videos and explanations. I'm taking data structures at the moment and these have been extremely helpful.

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

    The video game visual was really good :) Besides what you presented, I find really useful the "push" method too. Thanks for your videos! They are really clear and helpful!

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

    Even though I speak very little English, I understood everything, thank you.

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

    Thanks a lot for this tutorial. I now finally understood the stacks on Java. Thank you so much!

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

    When do you use the method add() and when do you use push()?

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

    Best tutorial so far. Keep it up 👍💪

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

    another fantastic video, the analogy made it very comprehensible, thanks!

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

    Awesome! I've just started learning Java for University and your videos have helped me a lot! so thank you so much:)

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

    awesome tutorial, you make it really simple.

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

    Your voice sounds so soothing Alex wish my professors sounded like you learning coulda been easy 😅

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

    You beat my professor in explaining stack

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

    Thank you Alex.. you are the best

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

    Hi Alex, that was very clearly explained as usual. I loved the visualisation.

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

    why not use push instead of add ?

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

    Video game visualization was super helpful.

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

    bro teach us much much better than our lecturers

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

    simple explanation, and easy to understand. thanks man
    nice office bedroom

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

    Very useful video. I understood everything without any problems. Good Luck !

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

    Thank you Mr Alex, great and easy explanation.

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

    Bro, you're really good. Love how you keep it very simple. Also congratulations, IK it's a little late probably but still :p

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

    Wonderful explanation of the concept using a realistic example (stack of video games). Thanks for making it crisp and powerful..

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

    even udemy teachers wouldn't say this great.. your channel must be hyped seriously

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

    your explanation was wayy so simple, thanks a lot for that

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

    thank you so much alex! i have an exam coming up

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

    Alex is one of the GOATs.

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

    That video game visualization was helpful sir. Loved your videos so far...
    Hope you will teach springboot...

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

    holy shit, ty, 06/28/2021 in brazil, and this video makes me very grateful, i couldn't find good explanations about stack anywhere, ty for this video

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

    your tutorial gives me aid to learn Java.

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

    You should make course for data algorithm . Because I understood more from you then my teacher.You already have , linkedlist, stack and que.

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

    It is a good Example for me to know the details
    Thanks

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

    Oh that was great, thank you. Is there a reason why you didn't use push?

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

    Great tutorial, very helpful.

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

    You are the best Bruh
    You always make it simple

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

    Great tutorial! Thank you!

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

    Looking forward to ur data structures and algo lesson!

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

    holy i'm drunk and late on my assignment and you made that so ez thanks alex!!! UR A GEM

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

    You are an excellent tutor!

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

    Thank u very much... i need to know more about Java cuz I intend to create an app for fun asap with Java

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

    you are every beginner's saviour!!!!

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

    Alex. Thanks for the video. What is the difference between hashmap and stack?

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

    Thank you so much. You explain cleary and better.❤️🔥😊

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

    Thanks alex , you are very good teacher

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

    its good to see a gamer teaches stacks java

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

    i think Stack he made is a stack in the JVM's memory. the Stack holds the pools which hold the strings

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

      nevermind Stack extends Vector, i found that out by using CTRL + Shift + T

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

    It was very helpful! Thank you!

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

    that was really helpful, thank you a lot

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

    The video game visualisation was genius in my opininon

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

    Congratulations 🎉🎊 for new office

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

    Can you do stacks and queues with singly linked list or with doubly linked lists

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

    It's helpful, thank you so much!

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

    this man deserves way more likes than he has now

  • @Emma-wy5yh
    @Emma-wy5yh ปีที่แล้ว

    Great video, what program are you using? I like how it auto-gens your main function

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

    So whats the advatage of this instead of using a linked list?

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

      CrazyCode great question! It’s mostly a matter of taste. This uses slightly less memory than a linked list because a linked list has to store info about other nodes. If you’ve got data you want to treat like a stack in a fast way with ways to see the top and pull from the top, feel free to go for a stack. But if you can get it to work with a linked list or anything else, you’re usually better off to go with what you feel comfortable with :)

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

      @@alexlorenlee 🙏

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

    Another great video, thank you so much!

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

    This is very helpful, thank you

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

    Please make videos on trees, queues, linkedlist, map....

  • @SouravDhali-mc6rc
    @SouravDhali-mc6rc 3 ปีที่แล้ว

    thank's brother. love from Bangladesh.

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

    Can you do more videos about interfaces please

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

    If I find you in my first year of college, I will get full marks in the java practicals

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

    OMG THIS HELPED ME OUT SO MUCH!!!!!!!!!!!!!!!!!!

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

    Can someone explain the difference between stacks and ArrayLists? In terms of purpose and functions

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

    thank you! this really helped

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

    thank you man !! really great

  • @מוטירז-י3ח
    @מוטירז-י3ח 2 ปีที่แล้ว

    Very good video. Thank you

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

    make a video about LinkedList and how to use it.
    like where can we use it if we are developing any program.
    everyone talks about node and singly and doubly that's it.
    Create a program which have all the OOP 4 pilers, Data Structure, and Algorithm. that way we can get a better idea of java.
    thank you

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

    it was the greatest tutorial

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

    Thank you with all my heart

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

    Hey, your explanation to stack is so fun to watch, , I instantly regretted watching Dr Strange yesterday, procrastinating. so boring..!

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

    Hi Alex, would you consider to make an arrays in Java tutorial? That would be really helpful, i like the way you explain it! keep doing it, great content

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

    What exactly is the difference between the add and push methods in java Stack?

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

    Thanks my man.

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

    Great wrk bro... 🎉

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

    Very nice lecture👍👍👍

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

    thank you alex