String fox;
Fox. tolower () to lowercase letters
Fox. toupper () converts to uppercase letters
Fox. Trim () removes leading and trailing Spaces
Fox. Trim (trimchars) delete other characters
Fox. trimstart (): space before deletion
Spaces after Fox. trimend () is deleted
Fox. padleft (10) adds spaces on the left to extend the string length.
Fox. padright (10) adds spaces on the right to extend the length of the string.
Fox. padx (10, '-') adds other characters to make the string reach a certain length. X indicates left/right.
Fox. Split ('') Splits strings into Arrays
System. Text. encoding. Default. getbytecount (Fox); get the string length. One Chinese Character equals two characters
// Obtain the location code of Chinese Characters
Byte [] array = new byte [2];
Array = system. Text. encoding. Default. getbytes ("ah ");
Int I1 = (short) (array [0]-'\ 0 ');
Int I2 = (short) (array [1]-'\ 0 ');
// Chinese character codes in Unicode decoding mode
Array = system. Text. encoding. Unicode. getbytes ("ah ");
I1 = (short) (array [0]-'\ 0 ');
I2 = (short) (array [1]-'\ 0 ');
// Unicode deserialization for Chinese Characters
String STR = "4a55 ";
String S1 = Str. substring (0, 2 );
String S2 = Str. substring (2, 2 );
Int T1 = convert. toint32 (S1, 16 );
Int t2 = convert. toint32 (S2, 16 );
Array [0] = (byte) T1;
Array [1] = (byte) T2;
String S = system. Text. encoding. Unicode. getstring (array );
// Decodes Chinese characters in the default mode
Array [0] = (byte) 196;
Array [1] = (byte) 207;
S = system. Text. encoding. Default. getstring (array );