String input="camelCasing"; input = input.replaceAll("([A-Z])", " $1"); System.out.println(input);
输出结果为:
camel Casing