Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package hw5;
- import java.util.*;
- public class QueueTime {
- static int n;
- static int s;
- static Random gen;
- static Queue<String> q = new LinkedList<String>();
- static poorQueue pq = new poorQueue();
- long start = System.nanoTime();
- public static void main(String[] args) {
- if (args.length == 0) {
- n = 1000;
- s = 111;
- } else if (args.length == 1) {
- n = Integer.parseInt(args[0]);
- s = 111;
- } else if (args.length == 2) {
- n = Integer.parseInt(args[0]);
- s = Integer.parseInt(args[0]);
- }
- gen = new Random(s);
- for (int i = 0; i < n; i++){
- pq.enqueue(""+n);
- q.
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement