SentenceMaker { public synchronized Stream<String> getSentencesStream(String text){ return _s.getSentencesStream(text); }  synchronized int getMinLength(); synchronized void setMinLength(int min_lengt); synchronized String getTargetLanguageCode(); synchronized void setTargetLanguageCode(String target_language_code); synchronized Stream<String> getSentencesStream(String text); synchronized Stream<String> getSentencesStream(String text, String languagecode); synchronized List<String> getSentences(String text); synchronized List<String> getSentences(String text, String languagecode);  }
@Test public void test() { new SentenceMaker().getSentencesStream("Hello\nhello hello world. Hello world.").forEach(System.out::println); }