I'm just learning about lambda expressions and I was wondering how to return a sorted string. For example, if I have "cba", I want "abc". Normally I would do:
String s = "cba";
char[] charList = s.toCharArray();
Arrays.sort(charList);
String sorted = charList.toString();
is there a way to do that in one line with lambda expressions?