[JAVA] toCharArray
2021. 5. 20. 13:54
자바
String str = "Hello World"; char[] charArr = str.toCharArray(); [0] = H [1] = e [2] = l [3] = l [4] = o [5] = " " [6] = "W" [7] = "o" [8] = "r" [9] = "l" [10] = "d"