packagecom.part02; publicclassStackX{ intsize; long[]stackArray; inttop; publicStackX(intmax){ size=max; stackArray=newlong[max]; top=-1; } //push value publicvoidpush(longvalue) { stackArray[++top]=value; } //pop a value publiclongpop() { returnstackArray[top--]; } //peek a...