java.lang.Character isLetter(int codePoint)


The Character.isLetter(int codePoint) java method determines if the specified character (Unicode code point) is a letter.

A character is considered to be a letter if its general category type, provided by getType(codePoint), is any of the following:


Not all letters have case. Many characters are letters but are neither uppercase nor lowercase nor titlecase.

The isLetter(int codePoint) method of Character class is static thus it should be accessed statically which means the we would be calling this method in this format:

Character.isLetter(int codePoint)

Non static method is usually called by just declaring method_name(argument) however in this case since the method is static, it should be called by appending the class name as suffix. We will be encountering a compilation problem if we call the java isLetter() method non statically.

Method Syntax

public static boolean isLetter(int codePoint)

Method Argument

Data Type Parameter Description
int codepoint the character (Unicode code point) to be tested.

Method Returns

The isLetter(int codePoint) method of Character class returns true if the character is a letter; false otherwise.


Requires Java 1.5 and up

Java Character isLetter(int codePoint) Example

Below is a simple java example on the usage of isLetter(int codePoint) method of Character class.


 * This example source code demonstrates the use of 
 * isLetter(int codePoint) method of Character class.

public class CharacterIsLetterCodepointExample {

	public static void main(String[] args) {
		// initialize a codepoint
		int codepoint = 89;
		// check if the codepoint is a letter or not
		boolean checkBool = Character.isLetter(codepoint);
		// print result
			System.out.print("Codepoint '"+codepoint+"' is a letter");
			System.out.print("Codepoint '"+codepoint+"' is not a letter");


Sample Output

Below is the sample output when you run the above example.

java Character isLetter(int codePoint) example output