Java Char Upper Case toUpperCase(char c)

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

Description

to Upper Case

License

Apache License

Declaration

public static char toUpperCase(char c) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    public static char toUpperCase(char c) {
        return isLowerCase(c) ? (char) (c - 'a' + 'A') : c;
    }/*from w  w w  . j a  va 2s.co  m*/

    public static boolean isLowerCase(char c) {
        if (c <= 'z' && c >= 'a')
            return true;

        return false;
    }
}

Related

  1. toUpperCase(byte[] in)
  2. toUpperCase(char a)
  3. toUpperCase(char a)
  4. toUpperCase(char a)
  5. toUpperCase(char c)
  6. toUpperCase(char c)
  7. toUpperCase(char ch)
  8. toUpperCase(char input)
  9. toUpperCase(char[] cs)