Skip to content

Commit 1c0cf79

Browse files
committed
change statament
1 parent 62c97f2 commit 1c0cf79

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

queue/basic/QueueFromStack.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void enqueue(int element) {
2626

2727
public int dequeue() {
2828
if (stack1.isEmpty()) {
29-
System.out.println("Queue is empty");
29+
System.out.println("Empty Queue");
3030
return -1;
3131
}
3232

@@ -35,7 +35,7 @@ public int dequeue() {
3535

3636
public int poll() {
3737
if (stack1.isEmpty()) {
38-
System.out.println("Empty queue");
38+
System.out.println("Empty Queue");
3939
return -1;
4040
}
4141
return stack1.peek();

0 commit comments

Comments
 (0)