MCPcopy Create free account
hub / github.com/MolinDeng/Princeton-algs4 / main

Method main

LabEnv/02Lab/RandomizedQueue.java:117–127  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 1

enqueueMethod · 0.95

Tested by

no test coverage detected