Given a String variable named sentence that has been initialized, write an expression whose value is the index of the very last character in the String referred to by sentence.
LANGUAGE: JAVA
CHALLENGE:
Given a String variable named sentence that has been initialized, write an expression whose value is the index of the very last character in the String referred to by sentence.
SOLUTION:
sentence.length() - 1