Stack Java Tutorial #65

  Рет қаралды 174,623

Alex Lee

Alex Lee

Күн бұрын

Пікірлер: 176
@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
@RixCanDoit
@RixCanDoit 5 жыл бұрын
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 жыл бұрын
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.
@MafazaSPutra
@MafazaSPutra 5 жыл бұрын
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 жыл бұрын
You are literally better than my professors at university. Plates be damned.
@gabrieldenobrega
@gabrieldenobrega 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 жыл бұрын
I agree, my professor demotivates me to learn programming. But watchng such a good explanation helps me)
@oshito
@oshito 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 жыл бұрын
@@oshito Nowadays I see why he wanted to teach us that way, I think I was just frustrated at the time.
@michaellabeltran3807
@michaellabeltran3807 4 жыл бұрын
Hi alex! I'm a computer science student and watched different videos related to java, but you make Java easier for me!
@NamNguyen-ir7gt
@NamNguyen-ir7gt 3 жыл бұрын
Thank Alex a lot for helping me learning java in easiest i have ever watched
@ayabonganomvalo8825
@ayabonganomvalo8825 2 жыл бұрын
Wooow all of your videos are explained clearly and understandable thanks man🤟
@PrathameshMawlankar
@PrathameshMawlankar 3 жыл бұрын
That's a very clean explanation tutorial for java stacks. The way you explained was neat and easy. Great man.
@HappyGiftGames
@HappyGiftGames 4 жыл бұрын
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.
@sulbhagirwalkar9917
@sulbhagirwalkar9917 3 жыл бұрын
best java tutorials ,very well explained
@Evilshrimp02
@Evilshrimp02 4 жыл бұрын
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 жыл бұрын
The video game visual was incredibly helpful, thank you Alex and I hope you are doing well and happy with your newfound passion :)
@chimmypark789
@chimmypark789 3 жыл бұрын
Thanks a lot for this tutorial. I now finally understood the stacks on Java. Thank you so much!
@mragunathan1627
@mragunathan1627 4 жыл бұрын
another fantastic video, the analogy made it very comprehensible, thanks!
@SoteKaGota
@SoteKaGota 5 ай бұрын
That video game visualization was helpful sir. Loved your videos so far... Hope you will teach springboot...
@sergiocarbajal4077
@sergiocarbajal4077 2 жыл бұрын
Great tutorial, very helpful.
@Savageboss52
@Savageboss52 5 ай бұрын
Even though I speak very little English, I understood everything, thank you.
@joondagoon6774
@joondagoon6774 3 жыл бұрын
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
@theFraggedNoobian
@theFraggedNoobian 5 жыл бұрын
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!
@thushankalana4940
@thushankalana4940 2 жыл бұрын
Thank you so much. You explain cleary and better.❤️🔥😊
@anujchaturvedi5642
@anujchaturvedi5642 3 жыл бұрын
When do you use the method add() and when do you use push()?
@CrazyGamesMinecraft
@CrazyGamesMinecraft 4 жыл бұрын
So whats the advatage of this instead of using a linked list?
@alexlorenlee
@alexlorenlee 4 жыл бұрын
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 🙏
@teodorprodanov662
@teodorprodanov662 3 жыл бұрын
Very useful video. I understood everything without any problems. Good Luck !
@vishvesh10
@vishvesh10 4 жыл бұрын
Bro, you're really good. Love how you keep it very simple. Also congratulations, IK it's a little late probably but still :p
@proalexv
@proalexv Жыл бұрын
Another great video, thank you so much!
@abdulazizhaqparast7764
@abdulazizhaqparast7764 3 жыл бұрын
I would be honest, the way you explain coding with real life examples, it is fabulous.
@Cablur
@Cablur 2 жыл бұрын
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!
@limzisin26
@limzisin26 4 жыл бұрын
It's helpful, thank you so much!
@antons6335
@antons6335 2 жыл бұрын
This is very helpful, thank you
@aviargas7406
@aviargas7406 3 жыл бұрын
thank you man !! really great
@nategalit5407
@nategalit5407 Жыл бұрын
OMG THIS HELPED ME OUT SO MUCH!!!!!!!!!!!!!!!!!!
@yolokazinogantsho8111
@yolokazinogantsho8111 2 жыл бұрын
Can you do stacks and queues with singly linked list or with doubly linked lists
@arturus4750
@arturus4750 3 жыл бұрын
The video game visualisation was genius in my opininon
@vc9867
@vc9867 4 жыл бұрын
Alex. Thanks for the video. What is the difference between hashmap and stack?
@sharmfernando3040
@sharmfernando3040 Жыл бұрын
Thank you!!
@2012SnowMan
@2012SnowMan 4 жыл бұрын
Awesome video! The video games is a great analogy for showing the functionality
@HelicopterRidesForCommunists
@HelicopterRidesForCommunists 2 жыл бұрын
Thanks my man.
@omidmehrabi5620
@omidmehrabi5620 9 ай бұрын
it was the greatest tutorial
@asta5583
@asta5583 3 жыл бұрын
Very helpful thanks alot
@ashuumudunuri3760
@ashuumudunuri3760 3 жыл бұрын
even udemy teachers wouldn't say this great.. your channel must be hyped seriously
@mohittyagi6694
@mohittyagi6694 4 жыл бұрын
congrats m8 for you new office space.. wish you best of luck for your future endeavors
@explorerars4208
@explorerars4208 8 ай бұрын
Very nice lecture👍👍👍
@fionalong4755
@fionalong4755 Жыл бұрын
You beat my professor in explaining stack
@mariammorjan880
@mariammorjan880 3 жыл бұрын
really helpful
@ginneidyleonzabala1487
@ginneidyleonzabala1487 4 жыл бұрын
Thank you so much
@notyourangel9
@notyourangel9 2 жыл бұрын
This is great and the real world visuals really keep things clear
@sebahattinsaral
@sebahattinsaral Жыл бұрын
this man is amazing
@vishy
@vishy 4 жыл бұрын
The video game example for stacking was excellent. You are a fantastic tutor Alex!
@pushpagowda7993
@pushpagowda7993 4 жыл бұрын
Congratulations 🎉🎊 for new office
@someguy007
@someguy007 5 жыл бұрын
Oh that was great, thank you. Is there a reason why you didn't use push?
@naharvlogzchina9641
@naharvlogzchina9641 3 жыл бұрын
Thank you so much,,,
@baneous18
@baneous18 3 жыл бұрын
Thank you Alex.. you are the best
@jonathanjordan21
@jonathanjordan21 3 жыл бұрын
I really dont understand what is functional difference of ArrayList, Hashset, and Stack??? they functionally works the same except for some feature in the method. I dont really think this makes any difference in a lot situations.
@luisishere987
@luisishere987 3 жыл бұрын
same here, all of this could be achieved with an ArrayList
@stepbystepcoding4113
@stepbystepcoding4113 2 жыл бұрын
You da man Alex!
@Applestaffman
@Applestaffman 2 жыл бұрын
why not use push instead of add ?
@paia6447
@paia6447 2 жыл бұрын
Stack is similar to an ArrayList
@TheBsoncarty
@TheBsoncarty 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!
@kalyanb2002
@kalyanb2002 4 жыл бұрын
Wonderful explanation of the concept using a realistic example (stack of video games). Thanks for making it crisp and powerful..
@geraldephraim7744
@geraldephraim7744 2 жыл бұрын
Excellent video explaining Stacks! Never understood what it meant till after watching this video. Thanks loads!
@nevernthirbeni535
@nevernthirbeni535 2 жыл бұрын
awesome tutorial, you make it really simple.
@Hogojub
@Hogojub 4 жыл бұрын
while(!games.empty()) { System.out.println(games.pop()); } Prints all the games in the real life order
@summerche165
@summerche165 4 жыл бұрын
the video game example is really helpful! thanks a lot!
@eshah3895
@eshah3895 4 жыл бұрын
Thank you Mr Alex, great and easy explanation.
@yicai7
@yicai7 4 жыл бұрын
Looking forward to ur data structures and algo lesson!
@kcconsigo7429
@kcconsigo7429 4 жыл бұрын
Best tutorial so far. Keep it up 👍💪
@ghezalshefa7653
@ghezalshefa7653 3 жыл бұрын
It is a good Example for me to know the details Thanks
@jx_cob5988
@jx_cob5988 4 жыл бұрын
What exactly is the difference between the add and push methods in java Stack?
@valcmeza
@valcmeza 3 жыл бұрын
All of your videos make my day. But I also learn from them. Keep up the good work Alex!
@khalidofthesand5920
@khalidofthesand5920 5 ай бұрын
"Say your game was... guitar hero" How did you know?
@Mariam_PinkLotus
@Mariam_PinkLotus 4 жыл бұрын
the best explanation ever seen. thank you Alex
@celestial1210
@celestial1210 5 жыл бұрын
Great tutorial! Thank you!
@roaa5824
@roaa5824 3 жыл бұрын
that was really helpful, thank you a lot
@andreeadan5595
@andreeadan5595 4 жыл бұрын
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!
@naharvlogzchina9641
@naharvlogzchina9641 3 жыл бұрын
Can you tall me what kind of Software good for c++programming.
@gamerneutro3245
@gamerneutro3245 3 ай бұрын
your explanation was wayy so simple, thanks a lot for that
@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
@Aayush28jun
@Aayush28jun 2 жыл бұрын
Hey, your explanation to stack is so fun to watch, , I instantly regretted watching Dr Strange yesterday, procrastinating. so boring..!
@fernandoreyna2990
@fernandoreyna2990 Жыл бұрын
The video game visual was perfect for understanding how stacks work.
@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
@zhangchi777
@zhangchi777 2 жыл бұрын
Can someone explain the difference between stacks and ArrayLists? In terms of purpose and functions
@zacharysong4863
@zacharysong4863 4 жыл бұрын
ur video is so fking fantastic!!!
@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.
@soheylatofighi5165
@soheylatofighi5165 8 ай бұрын
Hi Alex, that was very clearly explained as usual. I loved the visualisation.
@chrisforrest8994
@chrisforrest8994 Жыл бұрын
Your voice sounds so soothing Alex wish my professors sounded like you learning coulda been easy 😅
@dd8601
@dd8601 Жыл бұрын
Video game visualization was super helpful.
@jeremy1391
@jeremy1391 4 жыл бұрын
Just discovered your channel recently, awesome videos and explanations. I'm taking data structures at the moment and these have been extremely helpful.
@zubeirayaanle6417
@zubeirayaanle6417 Жыл бұрын
simple explanation, and easy to understand. thanks man nice office bedroom
@josue-cm6wu
@josue-cm6wu 4 жыл бұрын
I have a question: How can I add a line from the keyboard including spaces into a list.?
@ayeshamunirhossain8942
@ayeshamunirhossain8942 4 жыл бұрын
Create a scanner object like Scanner scan = new Scanner (); and then save the input into a variable and add onto the stacks as shown in the video You can also put the scanner in a loop for multiple inputs and adding each input onto a list Hope that helps :)
@Emma-wy5yh
@Emma-wy5yh Жыл бұрын
Great video, what program are you using? I like how it auto-gens your main function
@seandempsey4507
@seandempsey4507 2 жыл бұрын
holy i'm drunk and late on my assignment and you made that so ez thanks alex!!! UR A GEM
@SouravDhali-mc6rc
@SouravDhali-mc6rc 3 жыл бұрын
thank's brother. love from Bangladesh.
@MisterWealth
@MisterWealth 5 жыл бұрын
Can you start a series on building a video simple video game? Even if it's something like a gameboy game, because you could use simple sprites, keypad, simple buttons, alerts, damage, health and all the "simple" things to get moving on more complex games.
@amitmanna2355
@amitmanna2355 4 жыл бұрын
Please make videos on trees, queues, linkedlist, map....
@ultra_mega_tronic_source
@ultra_mega_tronic_source 4 жыл бұрын
thanks alex leeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
@nathnaelteklu1384
@nathnaelteklu1384 2 жыл бұрын
It was very helpful! Thank you!
@lungelosishi1157
@lungelosishi1157 2 жыл бұрын
You are the best Bruh You always make it simple
@rakeshbaral798
@rakeshbaral798 2 жыл бұрын
put your hands up if anyone thinks for a sec he was going to start gaming videos.
@chocovocxdoz9017
@chocovocxdoz9017 5 ай бұрын
bro teach us much much better than our lecturers
@karimtoumi3749
@karimtoumi3749 3 жыл бұрын
Can you do more videos about interfaces please
@coreybeaver8504
@coreybeaver8504 2 жыл бұрын
what would be the difference between this and an arraylist?
Queue In Java Tutorial #66
7:46
Alex Lee
Рет қаралды 137 М.
Array vs. ArrayList in Java Tutorial - What's The Difference?
17:36
Coding with John
Рет қаралды 531 М.
Ozoda - Lada ( Official Music Video 2024 )
06:07
Ozoda
Рет қаралды 18 МЛН
Getters and Setters Java Tutorial #84
14:12
Alex Lee
Рет қаралды 499 М.
Learn Stack data structures in 10 minutes 📚
10:07
Bro Code
Рет қаралды 216 М.
Negative Time is Real, Physicists Confirm. Kind Of.
6:59
Sabine Hossenfelder
Рет қаралды 11 М.
Inheritance in Java Tutorial #86
10:34
Alex Lee
Рет қаралды 385 М.
Meta Has Changed The Game.
10:17
DiscoVR Tetiana
Рет қаралды 6 М.
Abstract Class In Java Tutorial #79
8:55
Alex Lee
Рет қаралды 542 М.
LinkedList vs ArrayList in Java Tutorial - Which Should You Use?
11:43
Coding with John
Рет қаралды 594 М.
stack implementation using array in java
12:48
Learn to code
Рет қаралды 49 М.
Static in Java Tutorial #75
6:16
Alex Lee
Рет қаралды 258 М.
Ozoda - Lada ( Official Music Video 2024 )
06:07
Ozoda
Рет қаралды 18 МЛН