Skip to content

Commit 1c9a168

Browse files
committedSep 5, 2021
add an if() block along with a condition inside it
1 parent a457181 commit 1c9a168

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/queue/usingArray/ArrayQueue.java

+3
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ public E poll() {
101101

102102
@Override
103103
public E peek() {
104+
if (size == 0) {
105+
106+
}
104107
return null;
105108
}
106109
}

0 commit comments

Comments
 (0)