kotlin get last line of string
snippet in kotlin

kotlin get last line of string

user1051

paragraph.substring(paragraph.lastIndexOf("\n"))