How to split strings based on "/n" in Java [closed]

If you just want to split by new line, it is as simple as :

yourstring.split("\n"):

Leave a Comment