swapping to upper case in java using char data types code example
Example 1: how to make a char uppercase in java
char q = Character.toUpperCase('d');
Example 2: swap function java
public static void swap(int[] a, int i, int j){
int temp = a[i];
a[i] = a[j];
a[j] = temp;
}