300x250
250x250
Notice
Recent Posts
Recent Comments
Link
목록코딩 (1)
just_do_IT

String type을 다룰 때 사용할 수 있는 여러 함수 중 특정 조건을 이용해 배열로 저장시켜주는 역할을 하는 Split에 대해 알아보자. 1. split(String regex); String test ="213141516171819"; String [] arr = test.split("1"); String regex을 기준으로 문자열을 나누어 배열에 저장한다. String type의 test에 "213141516171819"라고 선언되어 있다. 이를 배열 arr에 1(String regex)을 기준으로 나누어 각각 배열에 저장하는 기능을 수행한다. ✓ arr 결과값 [2, 3, 4, 5, 6, 7, 8, 9] 2. split(String regex, int limit) String test ="a..
초보 개발자의 스터디룸
2022. 11. 28. 12:59