}

}

}

2.2 JavaMain.java

package com.yds.list;

public class JavaMain {

public static void main(String[] args) {

// TODO Auto-generated method stub

SequenceList《String》 list = new SequenceList《String》();

System.out.println(“isEmpty:”+list.isEmpty());

String La[] = {

“3”

};

for (int i = 0; i 《 La.length; i++) {

list.add(La[i]);

}

System.out.println(“isEmpty:”+list.isEmpty());

for (int i = 0; i 《 La.length; i++) {

System.out.println(list.get(i));

}

System.out.println(“length:”+list.length());

System.out.println(“priorElem:”+list.priorElem(1));

list.insert(“7”, 0);

System.out.println(“--------------------”);

for (int i = 0; i 《 list.length(); i++) {

System.out.println(list.get(i));

}

System.out.println(“length:”+list.length());

System.out.println(“--------------------”);

System.out.println(“priorElem:”+list.priorElem(1));

System.out.println(“nextElem:”+list.nextElem(0));

System.out.println(“--------------------”);

list.delete(1);

for (int i = 0; i 《 list.length(); i++) {

System.out.println(list.get(i));

}

list.clear();

System.out.println(“isEmpty:”+list.isEmpty());

System.out.println(“----------SequenceList(T element)----------”);

SequenceList《String》 list1 = new SequenceList《String》(“5”);

for (int i = 0; i 《 La.length; i++) {

list1.add(La[i]);

}

for (int i = 0; i 《 list1.length(); i++) {

System.out.println(list1.get(i));

  • UC3846控制芯片工作原理控制图 逆变焊机原理与用途
  • 数字万用表电阻档测试二极管正反向没有阻值(使用万用表测量二极管的正向电阻,为什么各档)
  • 学单片机需要学数电模电吗(学单片机要先学数电模电吗)
  • 电工怎么选择适合自己用的万用表(电工初学者买什么样的万用表好)
  • 单片机需要同时运行多个任务怎么办(单片机怎么同时执行多个任务)
  • 电机保护的方案取决于负载的机械特性
  • 绝缘电阻表正负搭接不复零位是怎么回事
  • 短路怎么用万用表查