Java Character isAlphabetic() MethodThe 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:
SyntaxParametercodePoint: It is the character to be tested. Return ValueThe isAlphabetic(intcodePoint)method returns true if the character is a Unicode alphabet character. Otherwise, this method returns the false. Example 1Test it NowOutput: The returned value for the first character is given as: false The returned value for the first character is given as: false Example 2Test it NowOutput: Codepoint '87' is an alphabet. Codepoint '49' is not an alphabet. Codepoint '63' is not an alphabet. Example 3Test it NowOutput: 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
|