You can use a Collector
like this to put the result into a LinkedList
:
LinkedList<String> usernames2 = users.stream()
.map(User::getUsername)
.collect(Collectors.toCollection(LinkedList::new));