본문 바로가기

B1:기초 Basement

Collection

반응형

ArrayList
TreeSet : Keeps the elements sorted and prevents duplicates
HashMap : Let's you store and access elements as name/value pairs
LinkedList : Designed to give better performance when you insert or
delete elements from the middle of the collection
HashSet : Prevents duplicates in the collection, and given an
element, can find that element in the collection quickly.
LinkedHashMap : Like a regular HashMap, except it can remember the
order in which elements(name/value pairs) were inserted, or it can be configured to remember the order in which elements were last accessed

public <T extends Animal> void takeThing(ArrayList<T> list)
  same
p
ublic void takeThing(ArrayList<? extends Animal> list)


Related Links

http://java.sun.com/docs/books/tutorial/collections/index.html


References
Head First Java, 2nd Edition. p.533

반응형

'B1:기초 Basement' 카테고리의 다른 글

Eclipse 3.2 단축키  (0) 2006.10.07
마틴 파울러의 책들(Martin Fowler's Books)  (0) 2006.10.06
이면우 교수의 월간조선 기고문  (0) 2006.10.05
객체 직렬화(Object Serialization)  (0) 2006.10.04
Wrapping a primitive  (0) 2006.10.03