public static void main(String[] args) {
    NodeList list=new NodeList();
    for (int i=0; i<8; i++)
      list.add(new NodeStatic(""+i));
    System.out.println(list); 
    
    NodeList list2=new NodeList();
    for (int i=0; i<3; i++)
      list2.add(new NodeStatic("2new"+i));
    
    list.remove(2);
    System.out.println(list.add(2, list2));
    System.out.println(list); 
  }