Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

arraylist sort

return Arrays.stream(words.split(" "))
                .sorted(Comparator.comparing(s -> Integer.valueOf(s.replaceAll("D", ""))))
                .reduce((a, b) -> a + " " + b).get();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #arraylist #sort
ADD COMMENT
Topic
Name
9+1 =