(int id, Queue<String> queue)
| 14 | "eight nine ten").split(" ")); |
| 15 | } |
| 16 | static void test(int id, Queue<String> queue) { |
| 17 | System.out.print(id + ": "); |
| 18 | strings().map(queue::offer).count(); |
| 19 | while(queue.peek() != null) |
| 20 | System.out.print(queue.remove() + " "); |
| 21 | System.out.println(); |
| 22 | } |
| 23 | public static void main(String[] args) { |
| 24 | int count = 10; |
| 25 | test(1, new LinkedList<>()); |