Java Character isLetter() Method Tutorial

In this section, we will learn what the Character isLetter() method is and how to use it in Java.

What is Java Character isLetter() Method?

The `isLetter()` method is used to see if the target character is a letter like `a`, `b`, `c` etc.

Java isLetter() Method Syntax:

static boolean isLetter(char ch)

isLetter() Method Parameters:

The method takes one argument, and that is the character that we want to check and see if it’s an alphabetic letter or not.

isLetter() Method Return Value:

The return value of this method is of type boolean.

If the target character was in fact a letter, then the result will be `true` otherwise `false`.

Example: using Character isLetter() method

public class Simple {

    public static void main(String args[]) {

        System.out.println(Character.isLetter('\t'));
        System.out.println(Character.isLetter('a'));
        System.out.println(Character.isLetter('5'));
    }
}

Output:

false

true

false
Facebook
Twitter
Pinterest
LinkedIn

Top Technologies