by Nathan
StringTokenizer
1. code 123456789101112131415public static void main(String[] args) { String delims = ","; String splitString = "1,2,,3,4,,5"; StringTokenizer st = new StringTokenizer(splitString, delims); while (st.hasMoreElements()) { System.out.println("StringTokenizer Output: " + st.nextElement()); } String[] tokens = splitString.split(delims); int tokenCount = tokens.length; for (int j = 0; j
Programming/JAVA
2017. 3. 17. 16:56