티스토리 뷰
[자바] 배열을 ArrayList나 Vector로 바꾸는 방법
It's quite simple. Use the static function of Arrays class.
int[] elements = {1,2,3,4};
Vector myVector = new Vector(Arrays.asList(elements));
Reference : http://docs.oracle.com/javase/6/docs/api/java/util/Arrays.html
It's quite simple. Use the static function of Arrays class.
int[] elements = {1,2,3,4};
Vector myVector = new Vector(Arrays.asList(elements));
Reference : http://docs.oracle.com/javase/6/docs/api/java/util/Arrays.html
static |
asList(T... a) Returns a fixed-size list backed by the specified array. |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- gae
- 팁
- 속깊은 자바스크립트 강좌
- 샷
- lecture
- GX-10
- gre
- Javascript
- HTML5
- ny-school
- Python
- 사진
- 안드로이드 앱 개발 기초
- Writing
- 자바스크립트
- google app engine
- java
- c++
- HTML5 튜토리얼
- mini project
- Android
- 서울
- 탐론 17-50
- 안드로이드
- 강좌
- php
- 뽐뿌
- 삼식이
- K100D
- TIP
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
글 보관함