The following diagram shows the queA, queB, and queC objects of Queue:
queA
12
queB
queC
Show the logical representation (diagram) of queX, queB, and queC after the implementation of the following program segment:
for(i = 1; i <= 3; i++) {
Object queX = new Queue();
queX.enqueue(Integer.parseInt(Integer.toString(i)));
queC.enqueue(i * 2);
queA.enqueue(i * 3);
}
for(int j = 1; j <= 3; j++) {
Object queB = queA.dequeue();
int num = Integer.parseInt(Integer.toString(j));
queB.enqueue(num);
queC.enqueue(num * 2);
}