public Queue(List<E> queue1) { queue = new ArrayList<E>(queue1.size()); System.out.println("const" + queue1.size()); // Collections.copy(this.queue, queue1); this.queue = queue1; }
List<Integer> e = new ArrayList<Integer>(3); e.add(1); e.add(2); e.add(3); System.out.println(e.size()); Queue<Integer> p = new Queue<Integer>(e);
this.queue = queue1
public Queue(List<E> queue1) { queue = new ArrayList<E>(queue1); Collections.copy(this.queue, queue1); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)