Compares the current string object to another string 将当前字符串对象与另一个字符串进行比较。
Reads and returns the current string appended to the input value 读取并返回追加到输入值的当前字符串。
This case - sensitive method returns true if the current string object begins with the passed string and 如果当前字符串对象以传递的字符串开始,则这个区分大小写的方法返回
Method compares a passed string to the characters that exist at the end of the current string object String . endswith方法将传递的字符串与位于当前字符串对象结尾处的字符进行比较。
Method compares the string that the current string object encapsulates to another string or object String . compareto方法将当前字符串对象封装的字符串与另一个字符串或对象进行比较。
Method provides a thorough way of comparing the current string object to another string or object String . compare方法提供了将当前字符串对象与另一个字符串或对象进行全面比较的方法。
Parameters specify the starting search position in the current string and the type of search to use for the specified string 参数指定当前字符串中的起始搜索位置以及用于指定字符串的搜索类型。
Parameters specify the starting search position in the current string , and type of search to use for the specified string 参数指定当前字符串中的起始搜索位置,以及要用于指定字符串的搜索类型。
Method creates a new string by concatenating enough trailing pad characters to an original string to achieve a specified total length . the 方法创建一个新的字符串,该字符串是左对的,以便对当前字符串进行扩展,从而使该字符串第一个索引的右侧有指定数量的空白。
Parameters specify the starting search position in the current string , the number of characters in the current string to search , and the type of search to use for the specified string 参数指定当前字符串中的起始搜索位置、要搜索的当前字符串中的字符数量,以及要用于指定字符串的搜索类型。