No video

Queue In Java Tutorial #66

  Рет қаралды 136,209

Alex Lee

Alex Lee

5 жыл бұрын

$1,000 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE. See if you qualify for the JOB GUARANTEE! 👉 bit.ly/3HX970h
A queue in java is an object that lets you store data like a line for a restaurant. First in line gets first dibs.
A queue is just a line. People stand in line and get fed in order. Queues in java take the next value in the queue. To take the next value in a java queue, do:
q.poll();
Or look at the next value in the queue by:
q.peek();
This queue java code can be tricky at first... But SURELY you'll get it :) If you followed along, congrats! You learned-by-doing!
I hope you enjoyed this queue in java tutorial! I like to have a nice mix of tutorials and actual projects for you all :)
Do you want to learn how to write java code from scratch, in Java? Check out my Java Tutorial For Beginners: • Coding For Beginners I...
Was this able to help you learn about the queue data structure in java? -
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

Пікірлер: 158
@alexlorenlee
@alexlorenlee 9 ай бұрын
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
@tinjapaken1108
@tinjapaken1108 4 ай бұрын
🎉
@haloisawesome7798
@haloisawesome7798 3 жыл бұрын
I learned more in this 7 minute video than my hour and a half lecture. Absolute legend @Alex Lee
@samueldelosreyes7598
@samueldelosreyes7598 3 жыл бұрын
Seriously hayss
@jackien404
@jackien404 3 жыл бұрын
could not agree more
@ariefsetiawan3516
@ariefsetiawan3516 2 жыл бұрын
TRUEEE
@acetan1074
@acetan1074 4 жыл бұрын
man .. 2 weeks of class made my headaches, but you healed me in 7:45 mins .
@RG-ri4qd
@RG-ri4qd 3 жыл бұрын
My teacher probably thinks I've been doing programming my whole life, but I've been learning from this guy for 2 weeks. Thanks man.
@nozgul3865
@nozgul3865 3 жыл бұрын
For years I have been running and avoiding java. Alex made it so interesting that I have never concentrated in java for this long in my entire life! Wish he made videos when i was studying
@youvegotmail9385
@youvegotmail9385 Жыл бұрын
Yall have no idea how lucky you are to have KZbin during college. Google hadn't yet acquired KZbin and it was still Google Videos during my time. I bet you didn't know that.
@beachwave5705
@beachwave5705 Жыл бұрын
@@youvegotmail9385 no one asked keep complaining
@celestial1210
@celestial1210 5 жыл бұрын
Really appreciate for making theses videos!! It really helps me a lot in understanding Java!! You make my studies a lot easier!! Looking forward to your upcoming videos!!! Thank you very much, Alex!!
@alexlorenlee
@alexlorenlee 5 жыл бұрын
Twitch.tv/theadolph that’s awesome, no problem!
@raboija
@raboija 4 жыл бұрын
I have been watching your videos all night, so simple and doesn't come out as scripted I love how u sometimes make mistakes and then solve your way through it help us understand better too. Keep up the good quality and thank you for this.
@abdeselamselami4532
@abdeselamselami4532 4 жыл бұрын
Thanks a lot Alex, for everyone the short-cut of System.out.println() is type sysout + hit buttons ctrl+space.
@kyliemun2681
@kyliemun2681 4 жыл бұрын
Thank you, keep it up! You are saving my life during final exams!'
@flickrplay
@flickrplay 3 жыл бұрын
every time I need a tutorial and you always had what I just need I'm not that active watching to your channel since most of my school project is most logical but in terms of new functions I always looking for your contents and in a short moment I already what I need Thank you.
@akizaizayoi4763
@akizaizayoi4763 5 жыл бұрын
Thanks dude. So far, I'm doing well studying in advance with your videos.
@valsant4
@valsant4 4 жыл бұрын
never stop making videos - you are so appreciated!
@tyrenrhinehart5697
@tyrenrhinehart5697 5 жыл бұрын
Shared it on FaceBook. Keep it up you're awesome!
@alexlorenlee
@alexlorenlee 5 жыл бұрын
Tyren Rhinehart thank you so much!!! :)
@nelsonlin9946
@nelsonlin9946 Жыл бұрын
These Java Videos are very useful I am currently doing Msc CompSci Conversion course and already more than half way through and these explains a lot better than the uni itself in a short time frame Thanks Alex Keep it Up!
@YT-oj4rp
@YT-oj4rp 3 жыл бұрын
haha that barbecue joke, caught me off guards. Thx for the videos
@levyax1964
@levyax1964 Жыл бұрын
I'm skipping all the school lectures for Alex's videos. Anyone in the same boat?
@Brizzesss
@Brizzesss 3 жыл бұрын
Thank you so much, I finally understand 3 projects I've been struggling with for weeks through watching a couple of your tutorials, Thank you again!
@stephanieezat-panah7750
@stephanieezat-panah7750 Жыл бұрын
love the reference to bbq. thank you. queues = fifo, stacks = lifo
@zaffarismail1508
@zaffarismail1508 3 жыл бұрын
Universities should fire those lecturers who spend more time trying to figure out how the projector works and hire people like Alex. Absolutely Amazing Video!
@anweshapatra6682
@anweshapatra6682 4 жыл бұрын
I like your videos a lot it's soo compact and simple to understand with day to day life examples, just makes it soo easy
@helliboi
@helliboi 3 жыл бұрын
These videos are honestly the best for java learning ive seen. Thank you so much for helping me learn this language :)
@RixCanDoit
@RixCanDoit 5 жыл бұрын
Thanks dude!
@alexlorenlee
@alexlorenlee 5 жыл бұрын
RixCanDoit np :)
@DoozMinecraft
@DoozMinecraft 3 жыл бұрын
I know you stopped making videos, but I just wanted to thank you for doing all of these videos. I still find videos I havent watched that are so helpful. Best of luck!
@user-lz1tu6gm5d
@user-lz1tu6gm5d 11 ай бұрын
Oh My God! I am really glad i found you. Literally understanding at the last moment for exam. Keep going! Lots of plauds and love for you..Thanks Bro:)
@jackmanjls
@jackmanjls 4 жыл бұрын
Excellent, organized and to the point with extremely useful information. Made something that seemed relatively complicated very easy to understand. I can apply this immediately to my project. Also great notes to use for reference.
@ikutoh04
@ikutoh04 3 жыл бұрын
Thank you Alex for making Java Easier to learn!
@dimitrydenscikov5567
@dimitrydenscikov5567 2 жыл бұрын
Thank you Alex for your fundamental work:) Fast and easy - what more could we ask for. Hope you're doing marvelously well with your new trainings. Anywhere in the world you know:)
@azeejshaik7081
@azeejshaik7081 3 жыл бұрын
hey #alex lee with the help of ur videos i complete my entire data structure syllabus in few hrs... it really helps in my final exams revision..
@valcmeza
@valcmeza 3 жыл бұрын
Loved that BBQ explanation! Thank you Alex.
@user-ww4er1fl8x
@user-ww4er1fl8x Жыл бұрын
Single handedly saved me from failing. A true legend.
@zalikashameem6092
@zalikashameem6092 2 жыл бұрын
I was dreading having to learn this so thank you for making it so easy to understand! Appreciated
@syahril2898
@syahril2898 3 жыл бұрын
I suggest you use some drawing/visuals when you story tell cause damn its interesting
@edoardofiorini8989
@edoardofiorini8989 3 жыл бұрын
Thanks man, love the way to teach so easily
@user-cm8en8or1p
@user-cm8en8or1p 2 жыл бұрын
Your videos are helping me so much. Thank you.
@mohamad877
@mohamad877 3 жыл бұрын
what's excatly the difference between HashMap, HashSet, Stack & Queue? they are basically all kinda do the same trick. I'm a lil bit confused on why there's many of them, could you please do a video explaining when to use them excatly, which one is better in which situation & why one is better than another etc. @Alex Lee (Thanks for the hard work man! we really appricate you & your videos)
@nduduzondlovu8520
@nduduzondlovu8520 2 жыл бұрын
you are perfect bro. Can you please do a video for us on how to create methods enqueue and dequeue in java.
@chimmypark789
@chimmypark789 3 жыл бұрын
Thank you so much for this. Really got me understood easily.
@krishbajaj7550
@krishbajaj7550 10 ай бұрын
This is incredible! Thanks Alex!
@yoni1991
@yoni1991 2 жыл бұрын
You are AMAZING man! Thank You. bro!
@rosswellbonete7919
@rosswellbonete7919 3 жыл бұрын
thank you for this video! i really like how you explain things clearly :)) now i understand queues more!
@karagardner733
@karagardner733 4 жыл бұрын
Your real-world explanations really help me learn and remember what I've learned! Thank you keep up the good work!
@lochanpokharel
@lochanpokharel 5 жыл бұрын
Thanks
@user-rs2yx6zc8q
@user-rs2yx6zc8q 4 жыл бұрын
should use enqueue and dequeue. They are the standard way to add and take out from the queue
@branvinifilms
@branvinifilms Жыл бұрын
Well done, thank you!
@samuelknightmusic
@samuelknightmusic 4 жыл бұрын
So gifted at teaching man! Can you please explain how we'd use a .txt file with a queue?
@prashanthigali8954
@prashanthigali8954 3 жыл бұрын
New subscriber i learnt more things in this small video thank you so much
@JohnReySilverio
@JohnReySilverio Жыл бұрын
Thank you, your videos really helped me a lot.
@professorposh4146
@professorposh4146 4 жыл бұрын
Can you set a limit to the queue so that only 4 elements can fit at one time?
@arunkutz
@arunkutz 2 жыл бұрын
Thank you for the informative video ... Very helpful 😊
@madeline182
@madeline182 3 жыл бұрын
I think you can't create instance of Queue like Queueq = new Queue() because Queue is an interface, and you can't make instances of Interfaces- on the other hand we have LinkedList which is class implementing Queue Interface, so there is no comilation error, is that correct?
@sharulaiman7484
@sharulaiman7484 3 жыл бұрын
Awesome explanation! love it Alex
@srihari795
@srihari795 Жыл бұрын
thats awesome dudeeeee😍😍
@z1nc0r3
@z1nc0r3 2 жыл бұрын
Thank you
@baneous18
@baneous18 2 жыл бұрын
Thank you Alex.. you are the best
@Brlitzkreig
@Brlitzkreig Жыл бұрын
You have a great sounding keyboard
@tiville421
@tiville421 Жыл бұрын
Amazing! Thank you! You are awesome! Keep it up!
@fazoodle7972
@fazoodle7972 2 жыл бұрын
fantastic video! much appreciated. short and sweet
@charlesliu1439
@charlesliu1439 2 жыл бұрын
nice presentation. Thx!
@lucasf.v.n.4197
@lucasf.v.n.4197 3 жыл бұрын
I like these quick videos
@ovey2214
@ovey2214 3 жыл бұрын
Fantastic job as always. Thanks brother!
@sankeths3508
@sankeths3508 Жыл бұрын
Thank you, this video was helpfull for me
@Maddof_Erroz
@Maddof_Erroz 3 жыл бұрын
First ever youtuber to say, "You can subscribe if you want ". Suits my ego, subscribed!
@drunkenone1699
@drunkenone1699 2 жыл бұрын
Pretty useful thank you so much :D
@simone5650
@simone5650 3 жыл бұрын
Your video's are saving my exam!
@nawfalnjm5699
@nawfalnjm5699 3 жыл бұрын
thank you . you are awesome !
@ArielGuitars
@ArielGuitars 4 жыл бұрын
good explanation!
@ahmadladkani3340
@ahmadladkani3340 3 жыл бұрын
you're amazing thank you..
@KD-xi9wu
@KD-xi9wu 3 жыл бұрын
Make video about Deque.
@dinithpriyankara2001
@dinithpriyankara2001 10 ай бұрын
Thank you so much
@Bira_Boom
@Bira_Boom Жыл бұрын
Thanks from India❤
@ericamuhammad5082
@ericamuhammad5082 2 жыл бұрын
Thank you!
@osamahislam
@osamahislam 3 жыл бұрын
well done,, thanks bro! keep up the good music !
@kennethfrederickx
@kennethfrederickx 2 жыл бұрын
Great video bro
@heyocrane8061
@heyocrane8061 3 жыл бұрын
Thank you for this :)
@riaria2251
@riaria2251 3 жыл бұрын
U r awesome sir thank u so much 💖
@NatureandSpirit111
@NatureandSpirit111 2 жыл бұрын
Similar to stack but which is faster and what’s the difference?
@tabithae3679
@tabithae3679 3 жыл бұрын
THANK YOU
@christianmanuel4161
@christianmanuel4161 9 ай бұрын
is it better to use .add instead of .offer??
@esi2047
@esi2047 3 жыл бұрын
Some heroes dont wear capes, Great Video
@deli5777
@deli5777 3 жыл бұрын
Good vids for sure, but for my class, I'm implementing Queues interface with a LinkedList class. I think this vid helps with testing though
@Jonny-op3wr
@Jonny-op3wr 4 жыл бұрын
Can you explain why you need to use linked list for creating the instance?
@webworld99
@webworld99 Жыл бұрын
The way my teacher could’ve explained this the way u did……
@pluviophile7926
@pluviophile7926 Жыл бұрын
Godsend. TYSM
@clausekinncaparida8096
@clausekinncaparida8096 2 жыл бұрын
can i print those letters randomly using the q.toArray method? like for example word Certified, I want to make it EICRTFDIE
@vladanstarcevic7453
@vladanstarcevic7453 Жыл бұрын
What is the real difference between Stack, Queue and generally Arrays & ArrayList? I watched all of your tuts but it's still a bit confusing to me @AlexLee? Thanks in advance!
@clausekinncaparida8096
@clausekinncaparida8096 2 жыл бұрын
could you make a tutorial for priorityqueue in java. I badly need it :(
@Arien17k
@Arien17k 3 жыл бұрын
My uni instead of teaching us how to use the data structures available (and already optimized), we have to build our own.... and here I am anxiously searching YT for help TToTT
@leannemoli2438
@leannemoli2438 2 жыл бұрын
Thank you!! :))
@Web-Driver
@Web-Driver Жыл бұрын
Thanks.
@7evenb
@7evenb 8 ай бұрын
my question is why is there so many types of lists (lists, queues, arraylists, stacks, hashsets, linkedlists) they all feel so similar and i cant tell the reason why they are all needed
@harshhwardhanrai3716
@harshhwardhanrai3716 3 жыл бұрын
plz we want course for data structure and algorithms and competitive programming in java.
@akumasdeception
@akumasdeception 3 жыл бұрын
So a linkedList is a standard queue implementation?
@stephymacvin1888
@stephymacvin1888 3 жыл бұрын
In BlueJ ,It has to be given as import java.util.Queue; import java.util.*; instead of import java.util.Queue; import java.util.LinkedList; WHY is this different?
@nitesharu1269
@nitesharu1269 3 жыл бұрын
I use intellij idea IDE and typed Queue sampleque and after autocomplete there were like 10+ methods implemented with return type as false. If you explain those it may stand more useful
@twenty4marc306
@twenty4marc306 2 жыл бұрын
Thx
@venur8153
@venur8153 3 жыл бұрын
how to implement single queues and double queues using single level inheritance by java program
@austinneatanante284
@austinneatanante284 2 жыл бұрын
How about for deque?
@katherinegonzaga8948
@katherinegonzaga8948 3 жыл бұрын
how about entering element? like SOP Enter Number/Words:...
@julianfgc
@julianfgc 4 жыл бұрын
how is this different to stacks?
@mayarabdelfatah699
@mayarabdelfatah699 4 жыл бұрын
Thank youuu!!!!
@freemancity2518
@freemancity2518 3 жыл бұрын
Bravo !
Linked List Java Tutorial #67
7:12
Alex Lee
Рет қаралды 327 М.
#13 Queue Implementation using Java Part 1 | EnQueue
9:38
Telusko
Рет қаралды 203 М.
小蚂蚁被感动了!火影忍者 #佐助 #家庭
00:54
火影忍者一家
Рет қаралды 54 МЛН
Bony Just Wants To Take A Shower #animation
00:10
GREEN MAX
Рет қаралды 6 МЛН
OMG what happened??😳 filaretiki family✨ #social
01:00
Filaretiki
Рет қаралды 11 МЛН
Generics In Java - Full Simple Tutorial
17:34
Coding with John
Рет қаралды 1 МЛН
Object-Oriented Programming Java Tutorial (Java OOP) #71
14:07
Stack Java Tutorial #65
9:31
Alex Lee
Рет қаралды 171 М.
Learn Queue data structures in 10 minutes 🎟️
10:07
Bro Code
Рет қаралды 113 М.
Code Flappy Bird in Java
54:02
Kenny Yip Coding
Рет қаралды 46 М.
Recursion Java Tutorial #69
9:07
Alex Lee
Рет қаралды 295 М.
Vectors in Java: The 1 Situation You Might Want To Use Them
16:13
Coding with John
Рет қаралды 79 М.
Access Modifiers Java Tutorial #82
11:27
Alex Lee
Рет қаралды 230 М.
小蚂蚁被感动了!火影忍者 #佐助 #家庭
00:54
火影忍者一家
Рет қаралды 54 МЛН