I want to get the last three characters of a String
. Example:
String x = "OlaMundo"
Output:
ndo
I can even do this using substring
, the problem is that I do not know the size of String
, I do not know what the word is.
Is there any way to do this without knowing the specific size of String
?