Java Char Upper Case toUpperCase(char a)

Here you can find the source of toUpperCase(char a)

Description

to Upper Case

License

Open Source License

Declaration

public static char toUpperCase(char a) 

Method Source Code

//package com.java2s;

public class Main {
    public static char toUpperCase(char a) {
        if (a < 'a') {
            return a;
        }/* www.  j  a va 2s .c o m*/
        if (a >= 'a' && a <= 'z') {
            return (char) (a + ('A' - 'a'));
        }
        return Character.toUpperCase(a);
    }
}

Related

  1. toUpperCase(byte b)
  2. toUpperCase(byte[] in)
  3. toUpperCase(char a)
  4. toUpperCase(char a)
  5. toUpperCase(char c)
  6. toUpperCase(char c)