String class: using the substring method to obtain only the last character in the str

Printable View