20.12
java.lang.String
THE PACKAGE JAVA.LANG
20.12.20
public boolean startsWith(String prefix)
throws NullPointerException
The result is
true
 if and only if the character sequence represented by the argu 
ment is a prefix of the character sequence represented by this
String
 object.
If
prefix
 is
null
, a
NullPointerException
 is thrown.
Note that the result will be
true
 if the argument is an empty string or is equal
to this
String
 object as determined by the
equals
 method ( 20.12.9).
20.12.21
public boolean startsWith(String prefix, int toffset)
throws NullPointerException
The result is
true
 if and only if the character sequence represented by the argu 
ment is a prefix of the substring of this
String
 object starting at index
toffset
.
If
prefix
 is
null
, then a
NullPointerException
 is thrown.
The result is
false
 if
toffset
 is negative or greater than the length of this
String
 object; otherwise, the result is the same as the result of the expression
this.subString(toffset).startsWith(prefix)
20.12.22
public boolean endsWith(String suffix)
throws NullPointerException
The result is
true
 if and only if the character sequence represented by the argu 
ment is a suffix of the character sequence represented by this
String
 object.
If
suffix
 is
null
, then a
NullPointerException
 is thrown.
Note that the result will be
true
 if the argument is an empty string or is equal
to this
String
 object as determined by the
equals
 method ( 20.12.9).
20.12.23
public int indexOf(int ch)
If a character with value
ch
 occurs in the character sequence represented by this
String
 object, then the index of the first such occurrence is returned that is, the
smallest value
k
 such that:
this.charAt(k) == ch
is
true
. If no such character occurs in this string, then
 1
 is returned.
540






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved