import java.util.Queue; import java.util.LinkedList; public class Main{ public static void main(String[] args) { // ******************************************************* // Queue = FIFO data structure. First-In First-Out // A collection designed for holding elements prior to processing // Linear data structure // enqueue = offer() // dequeue = poll() // Where are queues useful? // 1. Keyboard Buffer (letters should appear on the screen in the order they're pressed) // 2. Printer Queue (Print jobs should be completed in order) // 3. Used in LinkedLists, PriorityQueues, Breadth-first search // ******************************************************* Queue queue = new LinkedList(); queue.offer("Karen"); queue.offer("Chad"); queue.offer("Steve"); queue.offer("Harold"); //System.out.println(queue.isEmpty()); //System.out.println(queue.size()); //System.out.println(queue.contains("Harold")); //System.out.println(queue.peek()); //queue.poll(); //queue.poll(); //queue.poll(); //queue.poll(); System.out.println(queue); } }
@mouradbougarne11623 жыл бұрын
I hope that you complete this series by the end. As a self-taught developer, the data structure and algorithms are nightmares for me.
@XxAbdo2 жыл бұрын
I know it may be a lot for you but can make another tutorial but with C# ?
@joyceasante8292 Жыл бұрын
Practicing... import java.util.Queue; import java.util.LinkedList; public class Main{ public static void main(String[]args){ Queuequeue = new LinkedList(); //System.out.println(queue.isEmpty()); queue.offer("Temi"); queue.offer("Louella"); queue.offer("Kelly"); queue.offer("Kwabena"); //System.out.println(queue.peek()); //System.out.println(queue.size()); System.out.println(queue.contains("Thabang")); //queue.poll(); //queue.poll(); //queue.poll(); //queue.poll(); System.out.println(queue); } }
@jhonburnvillamor37603 жыл бұрын
I finished your Java full course video, and I now have a solid foundation in java. I am also learning python with the video that you made. Now I am watching and studying data structures and algorithms from a book and mixed it with your videos in data structures and algorithms. I'm a computer engineering student, and all of your videos, from basic (like html, css, javascript) to other languages and concepts of computer science really helped me a lot and I can't thank you enough Bro!!!
@lowkey12813 жыл бұрын
You're so underrated! Hope your channel find the recognition it deserves🔥
@BroCodez3 жыл бұрын
Thanks Lowkey! We'll get there eventually
@lowkey12813 жыл бұрын
@@BroCodez I've learnt almost 2 years worth of my school syllabus (Python) from your channel, thank you!
@amolgahane57623 жыл бұрын
That's absolutely true😳
@etcetc38003 жыл бұрын
@Lowkey you do know he's a senior coding dude at google right?
@BroCodez3 жыл бұрын
@@etcetc3800 nope. I code as a hobby lol
@fire_krystal Жыл бұрын
Best teacher of Java on KZbin period!! Thank you so much
@KlearChristal2 жыл бұрын
I love this style of teaching. Thank you for the laughs and the knowledge!
@aislofi3 жыл бұрын
The content is sooo amazing!!! I like your humor in your tutorials, that makes more interesting to watch xD
@cineloopers71313 жыл бұрын
1)liked❤️ 2)commented 3) subscribed 👍🏻 Excellent explanation with examples thank you
@NobleAbsinthe Жыл бұрын
You are legit bench pressing an entire generation of cs students with this course.
@IBAD.AMAN.073 жыл бұрын
Huge Love from Bangladesh 🇧🇩 Bro. I've completed ur java all in one video. Thanks for diminishing the dreed of mine about java. InshaAllah, this Life Saving Channel surely will get millions of subscriber.Stay safe Bro. And it will be a pleasure to get a full Data Structures And Algorithm playlist from our BRO🖤✌️.
@BroCodez3 жыл бұрын
Thank you for the support Raef! We'll make it there eventually!
@majellaomahony2047 ай бұрын
very helpful for anyone without CS degree - love concise way of teaching important essentials - thanks
@Mr.Thicket3 жыл бұрын
Bro my prof is making me do queues manually, like creating them in classes. Then I asked if I could just do it the normal way and he was like "oh yeah sure" this is 1000 times easier lol
@saarza999127 күн бұрын
It's for you to learn the implementation
@muralishankar97193 жыл бұрын
Excellent Channel That I've ever been on for coding classes.. You are the best Bro Code.
@tigercat16902 жыл бұрын
Good explanation of the queue. Liked it a lot !
@advancharofgamesАй бұрын
speeeeed running shorts
@Mohamed-uf5jh Жыл бұрын
Good explanation of the queue. !
@LorenzoMLasam3 жыл бұрын
I think it would be great if you could also make videos about Search Algorithms, Sorting Algorithms, Recursions, and also the types of algorithms in your "Data Structure and Algorithms" playlist And your videos are amazing. Clear, short, and very easy to understand. Hope your channel would grow
@BroCodez3 жыл бұрын
Yes! I still have more topics to cover tho
@shuilin1499 Жыл бұрын
Can you make topic about how to implement them instead just introduce how to use them because you know this course mostly about implementation @@BroCodez
@juanvalerareales3 жыл бұрын
I was waiting till the end of the video to smash that like button, as I always do, but when I saw the wild Karen appearing I had to pause the video and give your deserved "like", brooo.
@BroCodez3 жыл бұрын
Thank Juan!
@proalexv2 жыл бұрын
Super helpfull, thank you for the pictures, explaining the interface with a diagram and showing code with java!
@ChiragGarg-nv8pj10 ай бұрын
sir i cant understand dsa in java plz u can make vedio of dsa in c programing plz i request u becoz i didnt understant programing on youtube except your channel u r best teacher
@olgavasileva25212 жыл бұрын
I am waiting for 1M. You completely deserved it.
@gjsatru33833 жыл бұрын
Your way of explanation is awesome And you cover every detail👍👍👍
@Sub-zero11233 жыл бұрын
Your classes are great, keep it up
@rangeattack3 ай бұрын
Fantastic
@KateKarry-lv8lu2 ай бұрын
good😄
@virendramali1754 Жыл бұрын
Thanks for providing easiest way to learn DSA in java
@yohanaf3 жыл бұрын
This guy fulfilled my dream: learning from memes. Your teaching is the best and your lessons are really funny! haha
@gameGXT2 жыл бұрын
Super Fantastic
@aditya_asundi3 жыл бұрын
Superb video bro!! and congrats for crossing 50k subs.
@Sayantan_6272 жыл бұрын
Your teaching style is amazing. Don't know why YT suggested me so late.
@TonyMalik73 жыл бұрын
😍😍😍😍😍nicee video
@BroCodez3 жыл бұрын
Thank you Tony!
@Bromon655 Жыл бұрын
These lessons are invaluable, however when CS grads say that a degree "teaches you how to think," I'm reminded of moments like 3:08 where a deep dive into documentation and knowing what to look for resulted in the best solution to a problem. I fear I could spend years teaching myself to code, but I couldn't guarantee I could teach myself to think correctly.
@MohamedIbrahim98 Жыл бұрын
I wanna thank you for your great work, such an amazing channel 👏
@baubaudinamo3 жыл бұрын
You promised and you delivered! Nice video Bro!
@Fedo_943 жыл бұрын
Salut
@Sid-ot8dxАй бұрын
you sir, are a life saver
@victorrezende6002 Жыл бұрын
Nice class
@percivalgebashe4376 Жыл бұрын
Nice
@wolanus3 жыл бұрын
Great video.
@Bose141 Жыл бұрын
the way you teach is amazing like the cool meme channels . i dont feel bore. as i did t learn java it has been a hard time to convert your lecture in to cpp ; thank you ;
@СергейЕмельянов-е9з3 жыл бұрын
I love you, bro! From Russia with love :) Your lessons is best!) And I have PS4 too ;)
@silaadmiraldo9 ай бұрын
what a chad!, thanks a lot bro, very easy to understand with those example😂
@Muhammadfaisal-kd9kx Жыл бұрын
Thankyou well explained Brother.
@pujyamvssnkdheeraj5069 Жыл бұрын
Thank you so much bro - you helped us a Lot to learn .. Congratulationls . you will very soon reach 1M ..🎉🎉🎉🎉🎉🎉🎉🎉
@Remolhunter973 жыл бұрын
Thank you ! Learning with your videos is wonderfull
@BroCodez3 жыл бұрын
thanks for watching Remolhunter!
@emreotu44642 ай бұрын
Learn Queue data structures in 10 minutes 🎟
@ihig9129 ай бұрын
Thanks Dude you helped me with my final high school exam
@isabellemonkey29053 Жыл бұрын
great analogy, thanks for the video. made it fun !
@arnabsengupta80923 жыл бұрын
Love you bro ❤...love from india
@AllenAndersonTaylor2 жыл бұрын
Thank you for this! You rock. I'm a computer science student.
@brandonkruger90403 жыл бұрын
Thank you for the awesome explanation.
@BroCodez3 жыл бұрын
Glad it was helpful! Thanks for watching!
@virendramali1754 Жыл бұрын
Plzz make more videos related to Java
@danishuddin97522 жыл бұрын
Lovely explanation Bro thank you very much!
@iamfromasean7053 жыл бұрын
Bro, please continue your channel. Don't give up.
@BroCodez3 жыл бұрын
I'm still going! Don't worry!
@inamullahkhan77933 жыл бұрын
I am so excited for DSA and thinking how much tutorials we will have to enjoy at the end of this series 🤭😃
@BroCodez3 жыл бұрын
Thanks Inam! Idk how many videos I will add to this playlist yet lol
@FaresKhalid3 жыл бұрын
You're my preferable instructor :)
@shroomer38679 ай бұрын
Thank you, you explained it pretty well!
@felipemedrano53633 жыл бұрын
Great video, Thank you so much
@BroCodez3 жыл бұрын
Thanks for the support Felipe!
@dannyrand25432 жыл бұрын
Really helpful, thanks bro!
@nileshshastri4341 Жыл бұрын
Save this man at any cost.
@shuilin1499 Жыл бұрын
Hello, sir , thank you for such amazing vidoe. Can you make topic about how to implement them instead just introduce how to use them because you know this course mostly about implementation
@RichMo863 жыл бұрын
👏🏼👏🏼👏🏼
@Jitoro5 Жыл бұрын
Thanks, really understandable !
@djmsgjsjsjs93983 жыл бұрын
you are the best ,dude
@oguzhantopaloglu94423 жыл бұрын
i know all of these but im still watching because these videos are amazing
@BroCodez3 жыл бұрын
Thanks Oğuzhan! Hopefully it will be a good refresher at the very least
@Misha469011 ай бұрын
nice video bro, helped me a lot!
@Daaninator3 жыл бұрын
When "Sister Code" ?
@BroCodez3 жыл бұрын
oh shit, that's a cool alternate channel name
@KaosDragonLOCАй бұрын
I'd just okay call the manager and watch my manager have to deal with her craziness
@alicjarottau43852 жыл бұрын
that was very nice explanation. II think it would be very developmental if u would add how to make fifo with define size of queue
@MrLoser-ks2xn2 жыл бұрын
Thanks
@bajron33253 жыл бұрын
Harold is senior Java developer. That will be some of you guys in 20 years.
@michaelcamp2870 Жыл бұрын
Thank you
@helloworldcsofficial5 ай бұрын
Great. Is there a similar video but with Python?
@charlenebowman9112 Жыл бұрын
I would say I am the manager!😆
@danielmilewski76592 жыл бұрын
Wow you are the best teacher i have ever seen! The explanation and presentation is gold standard. GUYS this needs channel needs some LOVE! Like, sub and comment! Thank you Bro!
@deafprophets9009 Жыл бұрын
Thanks Bro
@constantinecodes63883 жыл бұрын
I recently found your channel and I quite like your videos. Might I suggest doing video clips for most of the data structures? Also does it have to be in Java 😢, would you consider Python or JS/TS as an option?
@BroCodez3 жыл бұрын
Thanks for watching! I'll try and figure something out, unfortunately the syntax really varies depending on the language. I wish it was all consistent for each programming language.
@constantinecodes63883 жыл бұрын
@@BroCodez I know it's quite different for JS but if you do it in Python it would be really nice. Keep up the great work tho'
@oguzhantopaloglu94423 жыл бұрын
Why would anyone need to know data structures in python lmao
@constantinecodes63883 жыл бұрын
@@oguzhantopaloglu9442 cause python is a very neutral language. Whenever you build data structures in JavaScript for example, you build them in a very specific way using object. That same way may not be applicable to other languages, whereas with python that might be more easily transferable.
@oguzhantopaloglu94423 жыл бұрын
You would never really need to know them for python, python is a dynamicly typed slow ass language with a lot of built in data types like list, tuple, dict and set. Seeing them in Java or C/C++ is way better and since most of the followers want Java it's obvious what it should be. Maybe he could do one for JS but python is pretty useless in terms of learning ADT.
@iRandroid3 жыл бұрын
❤️❤️❤️
@blue.v22 жыл бұрын
big W thanks gang my teacher was bugging
@neotericfossilАй бұрын
Thank you!
@ctluwua76953 жыл бұрын
I don't Know what to comment BUT... WOW
@MultimediaCizzy3 жыл бұрын
Please more of this 🙏
@BroCodez3 жыл бұрын
Sounds good! More DS & A comin' up!
@vuchinh99893 жыл бұрын
Thank you! Your lesson is very excited as always (^^^)
@NirmitKalyani Жыл бұрын
Hey bro please help me its showing syntax error and red line under dot(.) And semicolon(;) in queue.offer();
@emirhanyldz4093 Жыл бұрын
broooo this is awesome
@TheEvertonDias Жыл бұрын
Thanks, Bro!
@Naruto_Uzumaki_ Жыл бұрын
This guy is so cool 😭
@RemoteSynergy Жыл бұрын
Hi! What is the photo editing program you used to display the Queue example? It looks similar to Microsoft Paint but has more advanced features
@imhungry76923 жыл бұрын
nice, you still the best
@ShashankKokkula6 ай бұрын
The BEST BRO!!!!
@النمرالمقنع-ص6ص Жыл бұрын
THANKS1
@xames77893 жыл бұрын
Thank u broo
@emiralpkilic5669 Жыл бұрын
my bro
@guitarguy07 Жыл бұрын
thank you!
@workingricardo9373 Жыл бұрын
lovd it!
@hugocaisse9079 Жыл бұрын
Thanks bro!
@thomasbravo7903 жыл бұрын
♥️
@elisabethsaez30463 жыл бұрын
❤️
@RuslanLomakaАй бұрын
Hope Harold had a good rest after this video. Standing long time is exhausting for senior people.
@amolgahane57623 жыл бұрын
Hey Bro code , Can you make course on Android development? pls !! . . . And thank you!! for your all of this course 😊😊 it's very useful 💯
@BroCodez3 жыл бұрын
You're welcome! Maybe if enough people are interested in Android, then I could
@turtleguy973 жыл бұрын
are these all videos for data structures
@jakeblake06 Жыл бұрын
Coincidentally leaned back in my chair at the same time you told me to