Learn Queue data structures in 10 minutes 🎟️

preview_player
Показать описание
Queue data structure java tutorial example explained

#queue #data #structure

// *******************************************************

// 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

// *******************************************************
Рекомендации по теме
Комментарии
Автор

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<String> queue = new LinkedList<String>();

queue.offer("Karen");
queue.offer("Chad");
queue.offer("Steve");
queue.offer("Harold");






//queue.poll();
//queue.poll();
//queue.poll();
//queue.poll();

System.out.println(queue);

}
}

BroCodez
Автор

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!!!

jhonburnvillamor
Автор

You're so underrated! Hope your channel find the recognition it deserves🔥

lowkey
Автор

I love this style of teaching. Thank you for the laughs and the knowledge!

KlearChristal
Автор

The content is sooo amazing!!! I like your humor in your tutorials, that makes more interesting to watch xD

aislofi
Автор

Best teacher of Java on Youtube period!! Thank you so much <3

fire_krystal
Автор

Excellent Channel That I've ever been on for coding classes.. You are the best Bro Code.

muralishankar
Автор

Super helpfull, thank you for the pictures, explaining the interface with a diagram and showing code with java!

proalexv
Автор

Good explanation of the queue. Liked it a lot !

tigercat
Автор

1)liked❤️
2)commented
3) subscribed 👍🏻
Excellent explanation with examples thank you

cineloopers
Автор

Your way of explanation is awesome
And you cover every detail👍👍👍

gjsatru
Автор

You are legit bench pressing an entire generation of cs students with this course.

NobleAbsinthe
Автор

I wanna thank you for your great work, such an amazing channel 👏

MohamedIbrahim
Автор

I am waiting for 1M. You completely deserved it.

olgavasileva
Автор

very helpful for anyone without CS degree - love concise way of teaching important essentials - thanks

majellaomahony
Автор

Superb video bro!!
and congrats for crossing 50k subs.

aditya_asundi
Автор

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🖤✌️.

mdamanullahkhan
Автор

Your teaching style is amazing. Don't know why YT suggested me so late.

Sayantan_
Автор

Thank you for this! You rock. I'm a computer science student.

AllenAndersonTaylor
Автор

great analogy, thanks for the video. made it fun !

iuwvsmz
welcome to shbcf.ru