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"):

Browse More Popular Posts

Leave a Comment