News

Given a string,s , and two indices, start and end, print a substring consisting of all characters in the inclusive range from start to end - 1. You'll find the String class' substring method helpful ...
We use substring to grab the last 2 characters of the String. Note that we first make sure that our String is at least 2 characters long! In code challenges like this, it’s often important to think ...