Code example for BreakIterator

Methods: firstnextsetText

0
	} 
 
	public void clearBuffer() 
	{ 
		buffer = "";
		bdry.setText(buffer);
		start = bdry.first();
	} 
 
	public String getNextSentence()
	{ 
		int end = bdry.next();
		String s = "";
		if (BreakIterator.DONE != end)
		{ 
			s = buffer.substring(start,end);
		} 
		else 
		{ 
			s = buffer.substring(start);
Contextual code suggestions in your IDE  Get Codota for Java