Skip to content
This repository was archived by the owner on Feb 27, 2026. It is now read-only.

Commit 0bb6c71

Browse files
comment fix
1 parent de097c9 commit 0bb6c71

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • content/java/concepts/queue/terms/poll

content/java/concepts/queue/terms/poll/poll.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ public class PollQueueExample {
4949

5050
// Process elements
5151
while (!queue.isEmpty()) {
52-
String element = queue.poll(); // Removes and returns the head of the queue
52+
// Removes and returns the head of the queue
53+
String element = queue.poll();
5354
System.out.println("Processing element: " + element);
5455
}
5556
}

0 commit comments

Comments
 (0)