비즈니스 로직을 다루다보면 문자열을 다루는 일이 허다하다.


문자열만 잘 다뤄도 작업을 좀 편리하게 할 수 있다.


출처 - http://stackoverflow.com/questions/21524642/splitting-string-with-pipe-character




String[] value_split = rat_values.split("\\|");


요렇게 하면 파이프 구분자로 문자열을 잘라서 String 배열에 담을 수 있다.


+ Recent posts