List of utility methods to do Array Split
LinkedList | splitWordsL(String s, boolean splitOnWs, char[] delimiters) Split into words. if (s == null) return null; int cstart = -1, len = s.length(); LinkedList l = new LinkedList(); for (int pos = 0; pos < len; pos++) { char ch = s.charAt(pos); if (cstart < 0) { ... |
String | unsplit(String[] array, String seperator) unsplit StringBuilder str = new StringBuilder(); for (int i = 0; i < array.length; i++) { str.append(array[i]); if (i < array.length - 1) str.append(seperator); return str.toString(); |