substring( fromIndex
) produces a shorter String containing the same
characters that you started with, but beginning at index
fromIndex. Bear in mind that the index of
the first character of a String is 0.
substring( fromIndex,
toIndex ) produces the
substring that begins at index fromIndex
and ends at toIndex - 1.
"Hello".substring(3) is
"lo"
"Hello".substring(1, 4)
is "ell", and
"Hello".substring(0) is
"Hello" again.