title: Add to stack from ArrayList (Java)
body: <p>I have an ArrayList pre-defined with hardcoded values. How do  I add these to a stack? The idea is to demonstrate the pop, push, peek functions of the stack class.</p>
  
  <pre><code>ArrayList&lt;String&gt; al = new ArrayList&lt;String&gt;();
  
  al.add("A");
  al.add("B");
  al.add("C");
  
  Stack&lt;String&gt; st = new Stack&lt;String&gt;();
  
  st.push(al); **// This doesn't seem to work.. Will I have to loop it in some way?**
  
  System.out.println(st);
  </code></pre>
  
  <p>Thanks!</p>