Skip to content

Commit 8c200c0

Browse files
committed
add an else block
1 parent 2b8f93d commit 8c200c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/queue/usingArray/ArrayQueue.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ public E poll() {
103103
public E peek() {
104104
if (size == 0) {
105105
return null;
106+
} else {
107+
106108
}
107-
return null;
108109
}
109110
}

0 commit comments

Comments
 (0)