Vector의 용량(Capacity)와 크기(size) 살펴보기 Development/Algorithm, DataStructure
Vector의 용량(Capacity)와 크기(size) 살펴보기
Vector v = new Vector(5); |
v.add("10"); v.add("20"); v.add("30"); |
v.trimToSize(); |
v.ensureCapacity(6); |
v.setSize(7); |
v.clear(); |
'Development > Algorithm, DataStructure' 카테고리의 다른 글
이진 검색(binary search) (0) | 2017.05.01 |
---|---|
이진 탐색 트리(Binary Search Tree), 이진 트리 구조 도식도, 이진 검색 트리 저장 원리 (0) | 2017.05.01 |
Comparable의 compareTo 구현 사례 -Integer 랩퍼클래스 (0) | 2017.04.29 |
Vector의 용량(Capacity)와 크기(size) 살펴보기 (0) | 2017.04.22 |
하노이의 탑(Tower of Hanoi) (0) | 2017.03.06 |
The Sound of Sorting - "Audibilization" and Visualization of Sorting Algorithms - 15 Sorting Algorithms in 6 Minutes (0) | 2017.02.15 |
댓글을 달아 주세요