= "Hello world" = "hello world" = String ("hello world" = String ("hello world" = name2); System. out. println (name3 = name4); "query strings --------------------------------------------" "use strings! String "+": String Length "3) +": return the specified character "'O') +": Find the character subscript "'O ') + ": returns the subscript of the last character" "String judgment -------------------------------------" = "" String fileName = "Demo1.java "". java "); System. out. println (fileName. contains ("java"); System. out. println (fileName. equals ("java"); System. out. println ("java ". equals ("java"); System. out. println ("java ". equalsIgnoreCase ("JaVa"); "String Conversion -------------------------------------------" = String ([] {'A', 'B', 'C', 'D', 'E' [] charArr = str. toCharArray (); = String ([] {97,98, 99 [] byteArr = "String replacement -----------------------------------------" = "hello world! "" World "," java ");" string cutting ----------------------------------------- "=" hello world! "= StrSpl. split (" "string substring ------------------ obtain a part of the string in the specified order -------------------" = "hello world! "3); System. out. println (strSub. substring (); "string size conversion ---------------------------------------" = "HELLO world" "Remove spaces on both sides ---------------------------------------" = "hello world! "String strTrm =" hello world! "[] CharTr = start = 0 end = (I = 0; I <charTr. length; I ++ (charTr [I] = ''+ + (I = charTr. length-1; I> = 0; I -- (charTr [I] = ''-- + 1
"Natural sorting of String! "=" Abc "=" bcd "=" abc "=" abcdw "=" abc "=" afd "=" dmmmabc "=" afdmmmmmmmmmm"