I have a string like this:
"hello I am a example example"
I have get the last word of the string like this
String lasttWord = mystring.substring(mystring.lastIndexOf(" ")+1);
but I can´t split this because the word is repeated
How can I remove the last word only?