/*** * Change the name from underline to hump * * @param para * Underline named string */ public static String
UnderlineToHump(String para){ StringBuilder result=new StringBuilder(); String a
[]=para.split("_"); for(String s:a){ if (!para.contains("_")) { result.append(s)
; continue; } if(result.length()==0){ result.append(s.toLowerCase()); }else{
result.append(s.substring(0, 1).toUpperCase()); result.append(s.substring(1).
toLowerCase()); } } return result.toString(); } /*** * Hump naming changed to underline naming * * @param
para * Hump named string */ public static String HumpToUnderline(String para){
StringBuilder sb=new StringBuilder(para); int temp=0;// location if (!para.contains("_"
)) { for(int i=0;i<para.length();i++){ if(Character.isUpperCase(para.charAt(i)))
{ sb.insert(i+temp, "_"); temp+=1; } } } return sb.toString().toUpperCase(); }
Operation results :
"CLIENT_NO" Name the hump :clientNo "clientNo" Change to underline :CLIENT_NO

Technology
©2019-2020 Toolsou All rights reserved,
vue Changes in data Interface not updated Python realization js And Django Front and back interaction in the background JavaSwing To achieve a simple Lianliankan games C# Making a simplified version of calculator elementui Shuttle box el-transfer Display list content text too long JVM summary Regression of dependent variable order categories (R language )【C#】 The realization of student achievement information management system use css Design a simple style html login interface C language --------- Tetris ( source code )