modify code

master
algorithmzuo 4 years ago
parent 3387eaac97
commit d04b46143d

@ -162,7 +162,7 @@ public class Code03_DoubleEndsQueueToStackAndQueue {
} }
} }
int numq = (int) (Math.random() * value); int numq = (int) (Math.random() * value);
if (stack.isEmpty()) { if (queue.isEmpty()) {
myQueue.push(numq); myQueue.push(numq);
queue.offer(numq); queue.offer(numq);
} else { } else {

Loading…
Cancel
Save