Here you can find the source of splitCamelback(String s)
public static String[] splitCamelback(String s)
//package com.java2s; import java.util.Arrays; public class Main { public static String[] splitCamelback(String s) { return s.split("(?<=[a-z])(?=[A-Z])"); }//from ww w .j av a2 s .c o m public static String splitCamelback(String s, String sep) { return join(Arrays.asList(splitCamelback(s)), sep); } public static <T> String join(Iterable<T> a, String sep) { StringBuilder sb = new StringBuilder(); int pos = 0; for (T i : a) { if (pos > 0) sb.append(sep); sb.append(i); ++pos; } return sb.toString(); } }