Share on Google+Share on Google+

Check for character is letter or not.

This example check for the character is letter or not. It returns Boolean value.


This tutorial demonstrate the use of Character.isLetter() method which checks whether the value stored in char data-type variable is letter or not.


public class CheckLetter {
  public static void main(String[] args) {
    char charVar = 'a';
    if (Character.isLetter(charVar)) {
    else {


Download this code


Posted on: June 28, 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.