day14-08

LinkedList
其特有方法:
addFirst();
removeFirst();
removeLast();
getLast();


class LinkedListDemo{
public static void main(String[] args){
LinkedList link new LinkedList();
link.add("123");
link.add("456");
link.addFirst("123");
link.removeFirst("java02");
sop(link);
sop("size="+link.size);
sop(link.removeFirst())
}
public static void sop(Objct ojb){
System.out.print(obj);
}
}
get与remove区别
get 不会删除
remove 取还要删除
______
java04
java03
java02
java01
______