JAVA 문자열 나누기2 trim replace split trim() -> " 1,6 " -> "1,6"replace(" ","") -> "1, 6" -> "1,6"split(",") -> "1,6" -> seatNumbers[0] = "1" seatNumbers[1]="6" Back-end/Java 2016. 1. 29. 17:58