title: Creating a Stack with an internal array
body: <p>For an assignment, I've been tasked with:</p>
  
  <pre><code>// Create a stack with the default capacity 10. The stack expands
  // its internal array when the number of elements pushed() into it
  // would exceed the internal capacity.
  </code></pre>
  
  <p>I understand that stacks are created with:</p>
  
  <pre><code>Stack&lt;T&gt; a = new Stack&lt;T&gt;();
  </code></pre>
  
  <p>How can I go about doing this?  </p>