public class Main {
public static void main(String[] args) {
char[] arr = {'a', 'a', 'b', 'r', 'w', 'a', 's', 'a', 'q', 'f', 'z', 'v'};
Arrays.sort(arr);
for (int i = 0; i < arr.length; i++) {
arr[i] = Character.toUpperCase(arr[i]);
}
System.out.println(arr);
}
}