publicclassArrayStack{// 栈的大小privateintmaxSize;// 利用数组模拟栈privateint[]stack;// 栈顶指针privateinttop=-1;// 构造函数publicArrayStack(intmaxSize){this.maxSize=maxSize;stack=newint[this.maxSize];}// 判断栈满publicbooleanisFull(){returntop==this.maxSize-1;}// 判断栈空publicbooleani...