Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Would you like to tell how this code works?=?
i can do it. Let me try it.
That's briliant but from my point of view this loooks easier:
String numeroMaximo = Arrays.stream(Long.toString(number).split(""))
.sorted((a, b) -> b.compareTo(a))
.collect(Collectors.joining());
Oh man! I couldn't think it could have been done so clever like this :) Especially it avoids floating point computation and the hurdle of conversion floating point value to integer.