i.
Due tonight
i.
Reading
word-by-word
1.
Custom
delimiters
i.
boolean
Character.isDigit()
1.
Is this
character a number between 0 and 9?
ii.
boolean
Character.isWhiteSpace()
1.
Is this a
whitespace character?
iii.
String string.trim()
1.
Removes
whitespace from beginning and end of string
a.
This includes
newlines
iv.
int
Integer.parseInt()
1.
What if it’s
not an int? Or even if it contains
whitespace…
i.
String[]
string.split(String delim);
1.
Returns an
array containing the individual pieces of the String according to the delimiter
we pass in
2.
like with
useDelimiter, we specify what to split around
a.
Another example
of a regular expression
3.
We’ll usually
use something like “” or “,”
i.
Recognizing
that an exception has occurred. For
instance, unable to open the filename specified.
i.
Doing something
productive with that exception
ii.
What exactly
this means will depend on the context of the exception
1.
Different
exceptions/situations require different handling.