Java Reference
In-Depth Information
Table 14-2
Object Operations
Return Type
Name
Description
Boolean
< (Object)
Less than.
Boolean
!= (Object)
Not equal to.
Boolean
>= (Object)
Greater than or equal to.
Boolean
<= (Object)
Less than or equal to.
Boolean
> (Object)
Greater than.
Integer
compareTo
Compares this object with the specified object for order.
(Object)
Returns a negative integer, a zero, or a positive integer
when this object is less than, equal to, or greater than the
specified object, respectively.
Boolean
== (Object)
Equality.
String
toString ()
Returns the String representation of this object. (Calls
Java's toString() method.)
The super type of String is Object .
Table 14-3
String Properties
Type
Name
Description
Integer
length
The length of this String
Table 14-4
String Operations
Return Type
Name
Description
String
toUpperCase ()
Converts all the characters in this String to uppercase
using the rules of the default locale (from Java).
String
toLowerCase ()
Converts all the characters in this String to lowercase
using the rules of the default locale (from Java).
List
split (String)
Splits this String around matches of the given regular
expression (from Java 1.4).
String
trim ()
Returns a copy of the String, with leading and trailing
whitespace omitted (from Java 1.4).
String
+ (Object)
Concatenates two strings.
 
Search WWH ::




Custom Search