import java.util.*; public class Queue{ int[] arr; int top; int begin; public Queue(int size){ this.arr = new int[size]; this.top = -1; this.begin = -1; System.out.println("The Queue has created with the size:"+ size); } public boolean isFull(){ if(top == arr.length-1){ return true; }else{ return false; } } public boolean isEmpty(){ if (begin == -1 || begin == arr.length){ return true; }else{ return false; } } public void enq(int value){ if(isFull()){ System.out.println("The Queue is Full"); } else if(isEmpty()){ begin = 0; top++; arr[top] = value; System.out.println(value+" is successfully inserted."); } else{ top++; arr[top] = value; System.out.println(value+ " is successfully inserted"); } } public static void main(String[] args){ Queue q = new Queue(5); q.enq(1); q.enq(2); q.enq(3); q.enq(4); q.enq(5); } } with help arrays shape and structure create a full video of the line by line execution of the full code as per the Java developer kit

视频信息