Skip to content

Commit dfd5df8

Browse files
committed
fix: accessing newly added front() method, and changed output
1 parent 28c78cb commit dfd5df8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

β€ŽCodingBlocks Training/Day17/QusingStackEnqEffClient.javaβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public static void main(String[] args) throws Exception {
2121
System.out.println("\ndeleting element: " + queue.dequeue());
2222
queue.display();
2323

24+
System.out.println("\nfront element is :" + queue.front());
2425
System.out.println("\nsize of queue: "+ queue.size());
2526
}
2627

@@ -47,5 +48,7 @@ public static void main(String[] args) throws Exception {
4748
deleting element: 10
4849
20 >> 30 >> 40 >> 50 >>
4950
51+
front element is :20
52+
5053
size of queue: 4
5154
*/

0 commit comments

Comments
Β (0)