Home > Java > javaTutorial > body text

Chapter 1 Summary of commonly used string methods in Java

黄舟
Release: 2016-12-21 13:03:28
Original
1076 people have browsed it

1.1 charAt method - extract the specified character


1.2 codePointAt method - extract the index character code point


1.3 codePointBefore method - get the code point of the character before the index


1.4 codePointCount method - get the specified range of text Code points


1.5 CompareTo method - compare two strings


1.6 compareToIgnoreCase method - compare strings ignoring case


1.7 concat method - connect the end of string


1.8 contains method - judge Whether it contains the specified character


1.9 | copyValueOf method - generate a string from a character array


1.10 | endsWith method - determine the suffix string


1.11 | equals method - determine if the string is equal


1.12 | equalsIgnoreCase method - ignore Case determination of string equality


1.13 format method - format string


1.14 getBytes method - get the byte array of the string


1.15 getChars method - get the character array


1.16 hashCode method ——Generate a string hash table


1.17; indexOf method - get the first index of the character

 
1.18 intern method - get the normalized string


1.19 isEmpty method - determine whether the string is empty


1.20 LastIndexOf method - Get the last index of the character


1.21 Length method - Get the string length


1.22 Matches method - Match regular expressions


1.23 offsetByCodePoints method - Specify the code after getting the index offset Index of point


1.24 RegionMatches method - test whether two string regions are equal


1.25 replace method - replace character sequence


1.26 replaceAll method - replace all strings with regular expression matching


1.27 replaceFirst method - replace the first matching string with a regular expression


1.28 split method - split the string into an array


1.29 startsWith method - determine the prefix string


1.30 subSequence method - get the sub String sequence


1.31 | substring method - get substring


1.32 | toCharArray method - convert string into character array


1.33 | toLowerCase method - convert to lowercase string


1.34 | toUpperCase method - convert Into an uppercase string


1.35 Trim method - intercept blank spaces


1.36 ValueOf method - convert basic data types into strings

The above is a summary of the commonly used string methods in Java. For more related content, please pay attention to PHP Chinese website (www.php.cn)!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!