代码
public class Main {
public static void main(String[] args) {
CircleQueue circleQueue = new CircleQueue(4);
System.out.println("队列是否为空:"+ circleQueue.isEmpty());
circleQueue.addItem(1);
circleQueue.addItem(9);
circleQueue.addItem(13);
System.out.println("队列是否为空:"+ circleQueue.isEmpty());
System.out.println("队列是否已满:"+ circleQueue.isFull());
System.out.println("队列中有效数据的个数为:"+ circleQueue.itemNums());
//显示所有元素