解决方案 »

  1.   

    把你null的那一行,标记一下呗
      

  2.   

    楼主说实话  建议使用JDK的arrayList   
    this.listNum = new SeqList<Integer>(this.number);
    this.listName = new SeqList<String>(this.number);
    这两行是导致空指针的原因,而且之后调用append(),并没有解决数组元素为null的问题
    楼主可以自己查看
    for(int j=0;j<listName.length();j++){
    System.out.println(listName.get(j));
    }
      

  3.   

    在遍历List的时候,最好不用remove方法。不然会报空指针异常。