cara mengulang antrian di java
Queue<Integer> queue = new LinkedList<Integer>();
queue.add(1);
queue.add(2);
queue.add(3);
for (Integer item: queue) {
System.out.println(item);
}
Delightful Deer