Java Stream begrenzt Elemente

int maxNumberOfElements = 10;

list.stream()
    .limit(maxNumberOfElements); 
Syenite Phoenix