I don't quite understand what you are doing.
A Stack if a collection of objects (a string is a object), except it is
First in Last out (just like a pile of cards).
I don't understand what you mean by needing a differnt array of it,
unless you mean you need to use a array for your homework.