String test = "apple melon berry";
지금 결과를 바로 확인 못해서 QnA에 여쭤봅니다.
위의 문자열에서 apple과 melon 사이에는 공백이 1칸, melon과 berry 사이에는 공백이 2칸입니다.
String one = test.split(" ");
String two = test.split(" "); //1칸
String three =test.split(" "); //2칸
이렇게 해주면 String one,two,three값이 각각 test에서 떼어낸 apple, melon, berry 값을 갖게 되나요?