I am study Java String Tokenizer. I am looking for the way to find end of the paragraph.
For example, I have one text file..
HI
I am bob the the bob
And I am am bob bob bob lu the the
hello
I am reading txt file and I am using the String Tokenizer to put each word to hashtable
However, I would like to stop when paragraph is end. for example,
First, I want to store
"HI
I am bob the the bob"
Second, when we see double newlines, we stop. and insert "1" in the hashtable. then i would like to insert
"And I am am bob bob bob lu the the "
Third, when we see the double newline again , then we stop again. And we insert "2" in the hashtable
then
we insert "hello" into the hashtable.
However, I am not really sure the way to stop at the end of each paragraph ?
does anyone know how to do it ?