Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val queue = CircularFifoQueue<String>(5)
- queue.add("a")
- queue.add("b")
- queue.add("c")
- queue.add("d")
- queue.add("e")
- queue.add("f")
- queue.add("g")
- queue.add("h")
- queue.add("i")
- for (item in queue) {
- System.out.println(item)
- }
- // Output:
- // e
- // f
- // g
- // h
- // i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement