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 |
Tags
- php
- replace
- TPL
- Python
- SVN
- TextBox
- JavaScript
- 일괄변경
- Selectbox
- random
- Postfix
- yum
- 문자열자르기
- mariadb
- install
- MySQL
- 확장자
- 한글 깨짐
- 천단위
- docker
- 부모창
- Oracle
- ubuntu
- smarty
- jQuery
- Eclipse
- i18n
- RabbitMQ
- centos
Archives
- Today
- Total
wilson's story
배열을 리스트로 변경 본문
반응형
// 엔터값을 기준으로 배열로 만듬 String[] aa = test.split("\\r?\\n", -1); // aaList에 add가 되지 않는다 변경이 불가능하다 List<String> aaList = Arrays.asList(aa); // bbList에 add 가능 List<String> bbList = new ArrayList<>(Arrays.asList(aa));
반응형