Hi, I don't know if I will be helpful or not, but I did want to point out a few things... the first thing, take a close look at your StackClass constructor, the one that takes an integer. maxSize is the name used for the value you pass in AND for the private variable that holds the max size for the class. so inside that method, whenever you say "maxSize", you are only referring to the value you passed in, and therefore you are never updating the private variable, so it will remain at 0. I think that is the main source of your problem, however that wasn't the only thing I noticed. You are pushing 8 things onto the stack, so make sure you have the space on the stack to push them all (ie. do not make your stack size 5 and then try to push 8 elements onto it). And two more things:
(1) in your push() method, you are comparing the length of the array to maxSize, but they are always going to be equal.
test StackArray.length against maxSize inside any class instance, you will see that they are equal. "top" might come in handy here...
(2) take a closer look at this line:
maybe you're not starting at the very beginning of the stack...