String methods
l
Method
Parameter
Returns
Operation Performed
l
Name
Type
l
l
equals
String
boolean
l
l
l
compareTo
String
int
l
Tests for equality of string
contents.
Returns 0 if equal, a
positive integer if the
string in the parameter
comes before the string
associated with the
method and a negative
integer if the parameter
comes after it.