Stream trouble

Mon, 29 Jun 2015 23:44:03 +0200

I just had a stream of objects I wanted to sort and convert to a list. Optionally it should also be limited to a maximum number of entries. Piece of cake with Java 8: