private final static ArrayQueue MYARRAYQUEUE = new ArrayQueue();//像这样使用
/*private final static ArrayQueue MYARRAYQUEUE = ArrayQueue(int maxsize)这样行不通*/
private ArrayQueue(){
}
private ArrayQueue(int maxsize){
this.maxsize = maxsize;
arr = new int[maxsize];
}