Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
Tags
- query
- web.xml
- viewResolver
- 설치
- external
- legacy
- pom.xml
- Spring #Spring Boot
- 배열
- java
- collection
- jdk
- sqldeveloper
- oracle
- DB
- undefined error
- array
- Spring
- 컬렉션
Archives
- Today
- Total
목록collection (1)
개인코딩공부방
java collection 객체에서 배열로, 배열에서 collection 객체로
//collection인 queue 자료형 선언 Queue nodeQueue = new LinkedList(); /* Integer 자료형의 collection을 int 배열로 변환 */ int[] tempNodes = nodeQueue.stream().mapToInt(Integer::intValue).toArray(); /* Integer 자료형의 collection을 Integer(혹은 동일 자료형으로 변환) */ //변환에 필요한 자료형 선언 Integer[] tempNodes2 = new Integer[nodeQueue .size()]; //collection을 배열로 변환 tempNodes2 = nodeQueue .toArray(tempNodes2); //배열 정렬 Arrays.parallelS..
프로그래밍 언어/JAVA
2019. 1. 11. 10:31