Core Java
[Source] String 문자열 | 을 사용하여 split
헤르메스의날개
2010. 12. 30. 11:20
728x90
String strSplit = "2010|10"; String yy = strSplit.split("\\|")[0]; String mm = strSplit.split("\\|")[1];
728x90