r/programming • • Sep 19 '18

Java 11 String API Updates

https://4comprehension.com/java-11-string-api-updates/
41 Upvotes

21 comments sorted by

View all comments

3

u/berry120 Sep 20 '18

The `lines()` method is actually pretty neat - an overdue addition really (should've been added when Streams were.) Most of the rest seems a bit arbitrary, and that's being generous - I'm struggling to come up with any real world use cases of the `repeat()` method, if someone could enlighten me I'd be most grateful...