Tips
Retrieve a substring from the end in Java

To extract a substring in Java, use the substring method of the String class. By specifying the start index as the length of the original string minus the length of the substring, you can extract a substring from the end of the string.

Read more

photo by:Justin Kauffman