I am using jsoup to extract content from a webpage. But i want to break the paragraph and display the content on a line by line. This code does not display line by line.Code
if sb or el contains the entire text, you could replace each instance of . with .\n as below
sb
el
.
.\n
String el = "your text. your text next line. third line."; String[] l = el.split("\\."); for (String string : l) { System.out.println(string+ "."); }