Reputation: 197
Is there an easier way to do this?
public static void main(String[] args) {
char x = 'a'; //If 'a' I want 'A', if 'z' i want 'Z', and so on.
String aux = "";
aux=""+x;
aux=aux.toUpperCase();
x=aux.charAt(0);
}
Upvotes: 3
Views: 5256