Contact PSVM   (Q & A)  |  Notes Below   Audio  |  [toc]   [prev] Slide 3 of 13 [next]
SIJLesson24 Slide03
1, 2, [3 (top)], 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, [Lab]

Notes for Slide 03
Why are String methods helpful?
So far, we have learned of one String method: .equals().
Besides comparing two Strings for equality,
there are numerous other common tasks that you
will want to do with the value of a String.
For example, given a String value, you might want
to find all the spaces and separate the one long
String into separate Strings, one String for each word.

Notice that the common tasks you might want to do
with the other types (int, double, boolean) are
handled with operators (+, -, *, /, ==, &&, ||, etc.).
The only String operator, however, is + for
concatenation.

Instead of operators, common tasks on Strings
are available using methods such as .equals().


1, 2, [3 (top)], 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, [Lab]