[Solved] Display The String from last having a check on space


You can use String.lastIndexOf(' '); to get the index of the last space, and String.substring(int beginIndex) to cut the String.

Combining these two is left as an exercise to the reader.

7

solved Display The String from last having a check on space