I'm trying to perform the following stream operations on an ArrayList named parts:
parts
    .stream()
    .map(t -> t.toLowerCase())
    .distinct()
    .sorted()
    .collect(Collectors.toList());
where parts contains Strings like this:
Adventures
in
Disneyland
Two
blondes
were
going
to
Disneyland
....
Except upon looking at the debugger, parts isn't changed at all. Not sure if I'm missing some step of the process?
 
     
     
     
     
    