Modifier and Type | Method and Description |
---|---|
char |
charAt(int index)
|
int |
codePointAt(int index)
|
int |
codePointBefore(int index)
|
int |
codePointCount(int beginIndex,
int endIndex)
|
int |
compareTo(String anotherString)
|
int |
compareToIgnoreCase(String str)
|
String |
concat(String str)
|
boolean |
contains(CharSequence s)
|
boolean |
contentEquals(CharSequence cs)
|
boolean |
contentEquals(StringBuffer sb)
|
static String |
copyValueOf(char[] data)
Equivalent to valueOf(char[]) . |
static String |
copyValueOf(char[] data,
int offset, int count)
Equivalent to valueOf(char[],
int, int) . |
boolean |
endsWith(String suffix)
|
boolean |
equals(Object anObject)
|
boolean |
equalsIgnoreCase(String anotherString)
|
static String |
format(Locale l,
String format,
Object... args)
Returns a formatted string using the specified locale, format string, and arguments. |
static String |
format(String format,
Object... args)
Returns a formatted string using the specified format string and arguments. |
byte[] |
getBytes()
|
byte[] |
getBytes(Charset charset)
|
void |
getBytes(int srcBegin,
int srcEnd, byte[] dst, int dstBegin)
Deprecated. This method does not properly convert characters into bytes. As of JDK 1.1, the preferred way to do this is via the getBytes()
method, which uses the platform's default charset. |
byte[] |
getBytes(String charsetName)
|
void |
getChars(int srcBegin,
int srcEnd, char[] dst, int dstBegin)
|
int |
hashCode()
|
int |
indexOf(int ch)
|
int |
indexOf(int ch,
int fromIndex)
|
int |
indexOf(String str)
|
int |
indexOf(String str,
int fromIndex)
|
String |
intern()
|
boolean |
isEmpty()
|
static String |
join(CharSequence delimiter,
CharSequence... elements)
|
static String |
join(CharSequence delimiter,
Iterable<?
extends CharSequence> elements)
|
int |
lastIndexOf(int ch)
|
int |
lastIndexOf(int ch,
int fromIndex)
|
int |
lastIndexOf(String str)
|
int |
lastIndexOf(String str,
int fromIndex)
|
int |
length()
|
boolean |
matches(String regex)
|
int |
offsetByCodePoints(int index,
int codePointOffset)
|
boolean |
regionMatches(boolean ignoreCase,
int toffset, String other,
int ooffset, int len)
|
boolean |
regionMatches(int toffset,
String other,
int ooffset, int len)
|
String |
replace(char oldChar,
char newChar)
|
String |
replace(CharSequence target,
CharSequence replacement)
|
String |
replaceAll(String regex,
String replacement)
|
String |
replaceFirst(String regex,
String replacement)
|
String[] |
split(String regex)
|
String[] |
split(String regex,
int limit)
|
boolean |
startsWith(String prefix)
|
boolean |
startsWith(String prefix,
int toffset)
|
CharSequence |
subSequence(int beginIndex,
int endIndex)
|
String |
substring(int beginIndex)
|
String |
substring(int beginIndex,
int endIndex)
|
char[] |
toCharArray()
|
String |
toLowerCase()
|
String |
toLowerCase(Locale locale)
|
String |
toString()
|
String |
toUpperCase()
|
String |
toUpperCase(Locale locale)
|
String |
trim()
|
static String |
valueOf(boolean b)
Returns the string representation of the boolean argument. |
static String |
valueOf(char c)
Returns the string representation of the char
argument. |
static String |
valueOf(char[] data)
Returns the string representation of the char
array argument. |
static String |
valueOf(char[] data,
int offset, int count)
Returns the string representation of a specific subarray of the char array
argument. |
static String |
valueOf(double d)
Returns the string representation of the double argument. |
static String |
valueOf(float f)
Returns the string representation of the float argument. |
static String |
valueOf(int i)
Returns the string representation of the int
argument. |
static String |
valueOf(long l)
Returns the string representation of the long
argument. |
static String |
valueOf(Object obj)
Returns the string representation of the Object
argument. |
2020-03-06
Class String
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment