Last Value From String
Write a method name
lastValueFromString that accepts a
String containing one or more lines, each containing an
integer value, and returns the last value as an
The values may have whitespace around them!
For example, given the
1 2 4
You should return
You can assume that the passed
String contains at least one line, and has no blank lines or lines
that do not contain an integer value.