public class Previos {
   static Node list; int i;
   static void to_list(int e) {
      Node n = new Node(); n.elem = e; 
      if (list != null) n.next = n; 
      list = n;
   }
   public static void main(String argv[]) {
      to_list(1); 
      to_list(2); 
   }
}
class Node {
  int   elem;
  Node  next;
}
