Share on Google+Share on Google+

Check character in upper case or not.

This example check for the character in uppercase or not.


This tutorial demonstrate the use of Character.isUpperCase() method for rectifying whether the value stored in char is in uppercase or not.


public class CheckUpper {
  public static void main(String args[]) {
    char charVar = 'A';
    if (Character.isUpperCase(charVar)) {
    else {


Download this code


Posted on: June 26, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.