Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Java by Daanny ( 7 years ago )
List<String> list = Arrays.asList("", "a1", "a2", "b1", "c2", "c1");
List<String> newList = list.stream()
.sorted((a, b) -> a.compareTo(b))
.map( x -> x.startsWith("c") ? x.toUpperCase() : x )
.collect(Collectors.toList());
Revise this Paste