UNB/ CS/ David Bremner/ teaching/ java/ GenericNode.java
public class GenericNode<C> {
  private C data;
  private GenericNode<C> next;
  public GenericNode(C the_data){
      data=the_data;
      next=null;
  }
  public static void main(String args[]){
      GenericNode<String> list=null;
      for (int i=0; i<args.length; i++){
          GenericNode<String> node=
              new GenericNode<String>(args[i]);
          node.next=list;
          list=node;
      }
  }
}
//