/*
* 传入一个字符串 将它分割成大写字符为首的字符串数组
*/
private ArrayList<String> splitByUpperCase(String str) {
ArrayList<String> rs = new ArrayList<String>();
int index = 0;
int len = str.length();
for (int i = 1; i < len; i++) {
if (Character.isUpperCase(str.charAt(i))) {
rs.add(str.substring(index, i));
index = i;
}
}
rs.add(str.substring(index, len));
return rs;
* 传入一个字符串 将它分割成大写字符为首的字符串数组
*/
private ArrayList<String> splitByUpperCase(String str) {
ArrayList<String> rs = new ArrayList<String>();
int index = 0;
int len = str.length();
for (int i = 1; i < len; i++) {
if (Character.isUpperCase(str.charAt(i))) {
rs.add(str.substring(index, i));
index = i;
}
}
rs.add(str.substring(index, len));
return rs;
}