JAVA2. Given the program segment below output: import java.util. public class Question2Queues public static void main(Stringl ] args) QucuecInteger> queue new LinkedListInteger: int elementl 6, element2 7, element3 9 queuc.offer(element3); queue.offer(element2) queue.offerelement 1 % element3); element2 queue-pollO: queue.offer(element3 element3) queue.offerÃelement2); queue.offer(3); element! queue.poll): System.out.printin(element!+element2++ element3); while (queue.isEmpty) element queue.poll System.out.println(elementI): 3. Suppose that queue is a QueueClass object and the size of the array implementing queue is 400. Also, suppose that the value of queueFront is 399 and the value
OR
OR