1.循环队列的封装 package com.pinjia.shop.common.collection; /** * Created by wangwei on 2016/12/29. * 循环队列的自我封装 */ public class Myqueue<E> { E[] a;//数组对象 private static final int DEFAULT_SIZE = 10;//默认队列初始化大小 int front; int rear; public Myqueue(){ this(DEF…