
import java.util.*;

public class GenericDemo
{
   public static void main(String[] args)
   {
      LinkedList<String> stringList = new LinkedList<String>( );
      stringList.addANodeToStart("Hello");
      stringList.addANodeToStart("Good-bye");
      stringList.showList( );
  
      LinkedList<Integer> numberList = 
                                new LinkedList<Integer>( );
                                
      int i;
      for (i = 0; i < 10; i++)
           numberList.addANodeToStart(i);
       Vector<Integer> v = numberList.vectorCopy( );
       int position;
       int vectorSize = v.size( );
       for (position = 0; position < vectorSize; position++)
           System.out.println(v.elementAt(position));
    }
}
