forked from rbk-org/Java_DataStructures
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQueue.java
More file actions
35 lines (34 loc) · 824 Bytes
/
Copy pathQueue.java
File metadata and controls
35 lines (34 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import java.util.ArrayList;
public class Queue {
// ArrayList<Integer> array = new ArrayList<Integer>(10);
// public void push(int num){
// array.add(num);
// System.out.println("");
// }
// public void pop(){
// array.remove(0);
// System.out.println("");
// }
// public void display(){
// System.out.println(array);
// }
//
// public static void main(String[] args){
//
// //stack tester
// Queue QUEUE1;
// QUEUE1 = new Queue();
// QUEUE1.push(23);
// QUEUE1.push(11);
// QUEUE1.push(2);
// QUEUE1.display();
// QUEUE1.pop();
// QUEUE1.display();
// QUEUE1.pop();
// QUEUE1.display();
// QUEUE1.pop();
// QUEUE1.display();
//
// System.out.println(QUEUE1.array);
// }
}