I would go by a string.split(" ").lastOption
. But keep in mind that other blank chars may be used instead of space
solved Scala. How get last word in String [closed]
I would go by a string.split(" ").lastOption
. But keep in mind that other blank chars may be used instead of space
solved Scala. How get last word in String [closed]