(String[] args)
| 115 | } |
| 116 | |
| 117 | public static void main(String[] args) { |
| 118 | int n = 5; |
| 119 | RandomizedQueue<Integer> queue = new RandomizedQueue<Integer>(); |
| 120 | for (int i = 0; i < n; i++) |
| 121 | queue.enqueue(i); |
| 122 | for (int a : queue) { |
| 123 | for (int b : queue) |
| 124 | StdOut.print(a + "-" + b + " "); |
| 125 | StdOut.println(); |
| 126 | } |
| 127 | } |
| 128 | } |