Java Char Upper Case toUpperCase(char c)

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

Description

to Upper Case

License

Open Source License

Declaration

public static char toUpperCase(char c) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static final int alphaStep = 'a' - 'A';

    public static char toUpperCase(char c) {
        return isLowerCase(c) ? (char) (c - alphaStep) : c;
    }/*www .  j ava  2 s .  co  m*/

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

Related

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