push() etc in an ArrayStack
<p>For my assignment I've had to create an ArrayStack, a StackADT, and now I have to make a program to take in a string and output it in reverse.</p>

<p>Now this sounds simple, but I have no idea how to push something into the array. I've been googling the shit out of this and can't find an actual answer that makes sense.</p>

<p>Specifically I'm having trouble linking the main program to the actual array, and then linking the input string to the push().</p>

<pre><code>public class ReverseSentenceMain {

 public static void main (String[] args)
   {


 AssignmentArrayStack stack = new AssignmentArrayStack();
 //private AssignmentArrayStack&lt;String&gt; stack;

 public ReverseSentenceMain()
 {
  stack = new AssignmentArrayStack&lt;Integer&gt;();
 }

   String sentence;
   String result = null;
   String words;
   stack = (T[])(new Object[initialCapacity]);
   Scanner in  = new Scanner(System.in);
   System.out.println("Enter a sentence");


   }
}
</code></pre>

<p>I'd appreciate any help and thanks for your time</p>
