Skip to content

Commit 7ad151c

Browse files
committed
update java queue
1 parent bb81ae7 commit 7ad151c

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44

55
所有代码都经过具体测试运行,具体环境为:
66
- 操作系统:ubuntu14.04 64位
7-
- Go语言版本: Go 1.4
7+
- Go语言版本: Go 1.4.1
88
- Javascript执行环境: Nodejs 0.11.14
9-
109
- Java版本: Java 1.8.0_25
1110
- C语言编译器: gcc 4.8.2
1211

java/queue/Queue.java

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
package queue;
2+
3+
public class Queue<T> {
4+
5+
private T[] dataStore;
6+
private int theSize;
7+
8+
public Queue() {
9+
10+
}
11+
12+
public void enqueue(T element) {
13+
14+
}
15+
16+
public T dequeue() {
17+
return null;
18+
}
19+
20+
public int size() {
21+
return 0;
22+
}
23+
24+
public boolean isEmpty() {
25+
return false;
26+
}
27+
28+
public T font() {
29+
return null;
30+
}
31+
32+
public T end() {
33+
return null;
34+
}
35+
36+
public void clear() {
37+
38+
}
39+
40+
41+
}

0 commit comments

Comments
 (0)