Splitting paragraph into line statements
Being a beginner to JAVA, I am trying to find out a solution for splitting paragraphs in a file, into lines of statements.
Eg:- Paragraph in the given text file "sample" is
"Welcome to programming in JAVA. Java was developed by James Gosling. It is an object oriented language. "
The desired output is
Welcome to programming in JAVA
Java was developed by James Gosling
Java is an object oriented language
Can anyone help me out to find the way of achieving this.