Self Check
- Assuming the String variable s holds the
value "Agent", what is the effect of the assignment s =
s + s.length()?
- Assuming the String variable river holds the
value "Mississippi", what is the
value of river.substring(1, 2)? Of river.substring(2,
river.length() - 3)?