Javatpoint Logo
Javatpoint Logo

Java Character isAlphabetic() Method

The isAlphabetic(intcodePoint)method of Character class determines whether the specified character is an alphabet or not.

A character is considered to be an alphabet if it has the following characteristics:

  • UPPERCASE_ LETTER
  • LOWERCASE_LETTER
  • TITLECASE_LETTER
  • MODIFIER_LETTER
  • OTHER_LETTER
  • LETTER_NUMBER or
  • Other alphabets defined by the Unicode Standard.

Syntax

Parameter

codePoint: It is the character to be tested.

Return Value

The isAlphabetic(intcodePoint)method returns true if the character is a Unicode alphabet character. Otherwise, this method returns the false.

Example 1

Test it Now

Output:

The returned value for the first character is given as:   false
The returned value for the first character is given as:   false

Example 2

Test it Now

Output:

Codepoint '87' is an alphabet.
Codepoint '49' is not an alphabet.
Codepoint '63' is not an alphabet.

Example 3

Test it Now

Output:

The returned value for the first character is given as:   false
The returned value for the second character is given as:  true
The returned value for the third character is given as:   true
Next TopicJava Character



Help Others, Please Share

facebook twitter pinterest