📄 string.html
字号:
int toffset)</CODE>
<BR>
Tests if this string starts with the specified prefix beginning a specified index.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B>String.</B><B><A HREF="../../../java/lang/String.html#startsWith(java.lang.String)">startsWith</A></B>(<A HREF="../../../java/lang/String.html">String</A> prefix)</CODE>
<BR>
Tests if this string starts with the specified prefix.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B>String.</B><B><A HREF="../../../java/lang/String.html#endsWith(java.lang.String)">endsWith</A></B>(<A HREF="../../../java/lang/String.html">String</A> suffix)</CODE>
<BR>
Tests if this string ends with the specified suffix.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B>String.</B><B><A HREF="../../../java/lang/String.html#indexOf(java.lang.String)">indexOf</A></B>(<A HREF="../../../java/lang/String.html">String</A> str)</CODE>
<BR>
Returns the index within this string of the first occurrence of the specified substring.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B>String.</B><B><A HREF="../../../java/lang/String.html#indexOf(java.lang.String, int)">indexOf</A></B>(<A HREF="../../../java/lang/String.html">String</A> str, int fromIndex)</CODE>
<BR>
Returns the index within this string of the first occurrence of the specified substring, starting at the specified index.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD>
<TD><CODE><B>String.</B><B><A HREF="../../../java/lang/String.html#concat(java.lang.String)">concat</A></B>(<A HREF="../../../java/lang/String.html">String</A> str)</CODE>
<BR>
Concatenates the specified string to the end of this string.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../java/lang/Class.html">Class</A></CODE></FONT></TD>
<TD><CODE><B>Class.</B><B><A HREF="../../../java/lang/Class.html#forName(java.lang.String)">forName</A></B>(<A HREF="../../../java/lang/String.html">String</A> className)</CODE>
<BR>
Returns the <code>Class</code> object associated with the class with the given string name.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../java/io/InputStream.html">InputStream</A></CODE></FONT></TD>
<TD><CODE><B>Class.</B><B><A HREF="../../../java/lang/Class.html#getResourceAsStream(java.lang.String)">getResourceAsStream</A></B>(<A HREF="../../../java/lang/String.html">String</A> name)</CODE>
<BR>
Finds a resource with a given name.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD>
<TD><CODE><B>StringBuffer.</B><B><A HREF="../../../java/lang/StringBuffer.html#append(java.lang.String)">append</A></B>(<A HREF="../../../java/lang/String.html">String</A> str)</CODE>
<BR>
Appends the string to this string buffer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../java/lang/StringBuffer.html">StringBuffer</A></CODE></FONT></TD>
<TD><CODE><B>StringBuffer.</B><B><A HREF="../../../java/lang/StringBuffer.html#insert(int, java.lang.String)">insert</A></B>(int offset, <A HREF="../../../java/lang/String.html">String</A> str)</CODE>
<BR>
Inserts the string into this string buffer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static short</CODE></FONT></TD>
<TD><CODE><B>Short.</B><B><A HREF="../../../java/lang/Short.html#parseShort(java.lang.String)">parseShort</A></B>(<A HREF="../../../java/lang/String.html">String</A> s)</CODE>
<BR>
Assuming the specified String represents a short, returns that short's value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static short</CODE></FONT></TD>
<TD><CODE><B>Short.</B><B><A HREF="../../../java/lang/Short.html#parseShort(java.lang.String, int)">parseShort</A></B>(<A HREF="../../../java/lang/String.html">String</A> s, int radix)</CODE>
<BR>
Assuming the specified String represents a short, returns that short's value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD>
<TD><CODE><B>System.</B><B><A HREF="../../../java/lang/System.html#getProperty(java.lang.String)">getProperty</A></B>(<A HREF="../../../java/lang/String.html">String</A> key)</CODE>
<BR>
Gets the system property indicated by the specified key.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static long</CODE></FONT></TD>
<TD><CODE><B>Long.</B><B><A HREF="../../../java/lang/Long.html#parseLong(java.lang.String, int)">parseLong</A></B>(<A HREF="../../../java/lang/String.html">String</A> s, int radix)</CODE>
<BR>
Parses the string argument as a signed <code>long</code> in the radix specified by the second argument.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static long</CODE></FONT></TD>
<TD><CODE><B>Long.</B><B><A HREF="../../../java/lang/Long.html#parseLong(java.lang.String)">parseLong</A></B>(<A HREF="../../../java/lang/String.html">String</A> s)</CODE>
<BR>
Parses the string argument as a signed decimal <code>long</code>.</TD>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TD COLSPAN=2>Constructors in <A HREF="../../../java/lang/package-summary.html">java.lang</A> with parameters of type <A HREF="../../../java/lang/String.html">String</A></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../java/lang/Throwable.html#Throwable(java.lang.String)">Throwable</A></B>(<A HREF="../../../java/lang/String.html">String</A> message)</CODE>
<BR>
Constructs a new <code>Throwable</code> with the specified error message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../java/lang/Exception.html#Exception(java.lang.String)">Exception</A></B>(<A HREF="../../../java/lang/String.html">String</A> s)</CODE>
<BR>
Constructs an <code>Exception</code> with the specified detail message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../java/lang/InterruptedException.html#InterruptedException(java.lang.String)">InterruptedException</A></B>(<A HREF="../../../java/lang/String.html">String</A> s)</CODE>
<BR>
Constructs an <code>InterruptedException</code> with the specified detail message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../java/lang/RuntimeException.html#RuntimeException(java.lang.String)">RuntimeException</A></B>(<A HREF="../../../java/lang/String.html">String</A> s)</CODE>
<BR>
Constructs a <code>RuntimeException</code> with the specified detail message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../java/lang/IllegalStateException.html#IllegalStateException(java.lang.String)">IllegalStateException</A></B>(<A HREF="../../../java/lang/String.html">String</A> s)</CODE>
<BR>
Constructs an IllegalStateException with the specified detail message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../java/lang/Error.html#Error(java.lang.String)">Error</A></B>(<A HREF="../../../java/lang/String.html">String</A> s)</CODE>
<BR>
Constructs an Error with the specified detail message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../java/lang/VirtualMachineError.html#VirtualMachineError(java.lang.String)">VirtualMachineError</A></B>(<A HREF="../../../java/lang/String.html">String</A> s)</CODE>
<BR>
Constructs a <code>VirtualMachineError</code> with the specified detail message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../java/lang/OutOfMemoryError.html#OutOfMemoryError(java.lang.String)">OutOfMemoryError</A></B>(<A HREF="../../../java/lang/String.html">String</A> s)</CODE>
<BR>
Constructs an <code>OutOfMemoryError</code> with the specified detail message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../java/lang/IllegalArgumentException.html#IllegalArgumentException(java.lang.String)">IllegalArgumentException</A></B>(<A HREF="../../../java/lang/String.html">String</A> s)</CODE>
<BR>
Constructs an <code>IllegalArgumentException</code> with the specified detail message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../java/lang/IllegalThreadStateException.html#IllegalThreadStateException(java.lang.String)">IllegalThreadStateException</A></B>(<A HREF="../../../java/lang/String.html">String</A> s)</CODE>
<BR>
Constructs an <code>IllegalThreadStateException</code> with the specified detail message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../java/lang/NumberFormatException.html#NumberFormatException(java.lang.String)">NumberFormatException</A></B>(<A HREF="../../../java/lang/String.html">String</A> s)</CODE>
<BR>
Constructs a <code>NumberFormatException</code> with the specified detail message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../java/lang/InstantiationException.html#InstantiationException(java.lang.String)">InstantiationException</A></B>(<A HREF="../../../java/lang/String.html">String</A> s)</CODE>
<BR>
Constructs an <code>InstantiationException</code> with the specified detail message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../java/lang/SecurityException.html#SecurityException(java.lang.String)">SecurityException</A></B>(<A HREF="../../../java/lang/String.html">String</A> s)</CODE>
<BR>
Constructs a <code>SecurityException</code> with the specified detail message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../java/lang/NegativeArraySizeException.html#NegativeArraySizeException(java.lang.String)">NegativeArraySizeException</A></B>(<A HREF="../../../java/lang/String.html">String</A> s)</CODE>
<BR>
Constructs a <code>NegativeArraySizeException</code> with the specified detail message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../java/lang/IndexOutOfBoundsException.html#IndexOutOfBoundsException(java.lang.String)">IndexOutOfBoundsException</A></B>(<A HREF="../../../java/lang/String.html">String</A> s)</CODE>
<BR>
Constructs an <code>IndexOutOfBoundsException</code> with the specified detail message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html#ArrayIndexOutOfBoundsException(java.lang.String)">ArrayIndexOutOfBoundsException</A></B>(<A HREF="../../../java/lang/String.html">String</A> s)</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -