Java API

xiaoxiao2021-03-05  24

Java.lang.string

· CHAR Charat (int index) Returns a character in the specified location • If the string is in front of the Other string, returns a negative value; if the string is behind the Other string, return a positive value; if character String, return 0 · Boolean endswith (String Suffix) If the string is ending with SUFFIX, return True · Boolean Equals (Object Other) If the string is equal to Other, return True · Boolean equalsignore (string other) if string and other Equality (except for case differences), returns True · INDEXOF (String Str) · INT INDEXOF (String Str, INT fromNDEX) Returns the start position of the first substring matching from index 0 or index fromNDEX, INT Length () Returns the length of the string · String Replace (Char oldchar, char newcha) Returns the new string after all the characters in the original string in the original string · Boolean StartSwith (String Prefix) If the string is prefix Start, returning True · String Substring (int start "· String Substring (int startex, int endindex) Returns the original string from BeginIndex start until the end of the string or is made up of all characters between endIndex (including this location) String · String Toolcase () converts all uppercase letters in the original strings into lowercases, returns new strings after the conversion · String TouPpercase () convert all lowercase letters in the original strings to uppercase, return new strings after conversion · String Trim () Remove all the start and end space in the original string, return a new string

转载请注明原文地址:https://www.9cbs.com/read-35086.html

New Post(0)