GNU nano 2.2.6 File: StackExercise.java - TopicsExpress



          

GNU nano 2.2.6 File: StackExercise.java import java.util.*; public class StackExercise { public static void main (String [] args){ Stack st = new Stack (); st.push (0); System.out.println (st); st.push (1); System.out.println (st); st.push (2); System.out.println (st); st.push (3); System.out.println (st); st.push (4); System.out.println (st); st.pop (); System.out.println (st); st.pop (); System.out.println (st); st.pop (); System.out.println (st); st.pop (); System.out.println (st); st.pop (); System.out.println (st); } }
Posted on: Wed, 02 Oct 2013 08:23:27 +0000

Trending Topics



Recently Viewed Topics




© 2015