Phase 1 Language Basics + Advanced _1-3-Java language senior _04- collection _05 List collection _3_LinkedList collection



List implementation, slow queries, additions and deletions fast







addFirst

Add the beginning of the collection

equivalent to push addFirst



addLast



 

 

getFirst和getLast



clear

Empty and then output

 

isEmpty

Not only gets the value of which is empty

commented clear statement output the contents inside

remove












 

Guess you like

Origin www.cnblogs.com/wangjunwei/p/11237993.html