|
|
|
@ -8,8 +8,6 @@ import java.util.regex.Pattern;
|
|
|
|
|
*/
|
|
|
|
|
public class StringCastUtils {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static String upperCharToUnderLine(String param) {
|
|
|
|
|
Pattern p= Pattern.compile("[A-Z]");
|
|
|
|
|
if(param==null ||param.equals("")){
|
|
|
|
@ -32,7 +30,7 @@ public class StringCastUtils {
|
|
|
|
|
return builder.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
upperCharToUnderLine("snStatus");
|
|
|
|
|
}
|
|
|
|
|
// public static void main(String[] args) {
|
|
|
|
|
// upperCharToUnderLine("snStatus");
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|