//capitalize the first letter
Public static String captureName (String name) {
Name=name. The substring (0, 1). The toUpperCase () + name. The substring (1);
Return the name;
}
//the string name letter headed by transformation, but the efficiency is not high, before have I seen a cow person method of write the core code, so
//capitalize the first letter
Public static String captureName (String name) {
Char [] cs=name. ToCharArray ();
Cs [0] -=32;
Return a String. The valueOf (cs);
}
CodePudding user response:
Nature is almostCodePudding user response:
Do not have what distinction, you said that the great god of writing is transformed according to corresponding asc character codeCodePudding user response: