How do I check if string contains \\n or new line character ?
word.contains(\"\\\\n\") word.contains(\"\\n\")
The second one:
word.contains("\n");