0

How to sort char[]?

I have String input and I need to store it in char[] array: char[] charInput = input.toLowerCase().toCharArray(); How can I sort it?

3rd Aug 2017, 12:31 AM
Stacy
Stacy - avatar
1 Respuesta
0
Ah! I think --> Arrays.sort(charInput); is the answer.
3rd Aug 2017, 12:43 AM
Stacy
Stacy - avatar