to get first N elements from a list into a list, List<String> firstNElementsList = list.stream().limit(n).collect(Collectors.toList());