Given a String variable named sentence that has been initialized , write an expression whose value is the 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 the very last character in the String referred to by sentence.

SOLUTION:


sentence.charAt(sentence.length()-1)