查看原版文档English Version

Java API频道主页 > java.lang > String

搜索标题关键字:
public char charAt(int index) public int codePointAt(int index)
public int codePointBefore(int index) public int codePointCount(int beginIndex, int endIndex)
public int compareTo(String anotherString) public int compareToIgnoreCase(String str)
public String concat(String str) public boolean contains(CharSequence s)
public boolean contentEquals(StringBuffer sb) public boolean contentEquals(CharSequence cs)
public static String copyValueOf(char[] data, int offset, int count) public static String copyValueOf(char[] data)
public boolean endsWith(String suffix) public boolean equals(Object anObject)[1]
public boolean equalsIgnoreCase(String anotherString)[1] public static String format(String format, Object... args)
public static String format(Locale l, String format, Object... args) @Deprecatedpublic void getBytes(int srcBegin, int srcEnd, byte[] dst, int dstBegin)
public byte[] getBytes(String charsetName) throws UnsupportedEncodingException public byte[] getBytes(Charset charset)
public byte[] getBytes() public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)
public int hashCode() public int indexOf(int ch)
public int indexOf(int ch, int fromIndex) public int indexOf(String str)[1]
public int indexOf(String str, int fromIndex) public String intern()
public boolean isEmpty() public int lastIndexOf(String str)
public int lastIndexOf(String str, int fromIndex) public int lastIndexOf(int ch)
public int lastIndexOf(int ch, int fromIndex) public int length()[1]
public boolean matches(String regex) public int offsetByCodePoints(int index, int codePointOffset)
public boolean regionMatches(int toffset, String other, int ooffset, int len) public boolean regionMatches(boolean ignoreCase, int toffset, String other, int ooffset, int len)
public String replace(char oldChar, char newChar) public String replace(CharSequence target, CharSequence replacement)
public String replaceAll(String regex, String replacement) public String replaceFirst(String regex, String replacement)
public String[] split(String regex, int limit) public String[] split(String regex)
public boolean startsWith(String prefix, int toffset) public boolean startsWith(String prefix)
public String(String original) public String(char[] value)
public String(char[] value, int offset, int count) public String(int[] codePoints, int offset, int count)
@Deprecatedpublic String(byte[] ascii, int hibyte, int offset, int count) @Deprecatedpublic String(byte[] ascii, int hibyte)
public String(byte[] bytes, int offset, int length, String charsetName) throws UnsupportedEncodingException public String(byte[] bytes, int offset, int length, Charset charset)
public String(byte[] bytes, String charsetName) throws UnsupportedEncodingException public String(byte[] bytes, Charset charset)
public String(byte[] bytes, int offset, int length) public String(byte[] bytes)
public String(StringBuffer buffer) public String(StringBuilder builder)
public CharSequence subSequence(int beginIndex, int endIndex) public String substring(int beginIndex)
public String substring(int beginIndex, int endIndex) public char[] toCharArray()
public String toLowerCase(Locale locale) public String toLowerCase()
public String toString() public String toUpperCase(Locale locale)
public String toUpperCase() public String trim()
public static String valueOf(Object obj) public static String valueOf(char[] data)
public static String valueOf(char[] data, int offset, int count) public static String valueOf(boolean b)
public static String valueOf(char c) public static String valueOf(int i)
public static String valueOf(long l) public static String valueOf(float f)
public static String valueOf(double d)