Character.isIdeographic() in Java

Character.isIdeographic(): This method is available in java.lang.Character class of Java.

Syntax:

boolean java.lang.Character.isIdeographic(int codePoint)

This method takes one argument of type int as its parameter. This method determines if the specified character (Unicode code point) is a CJKV(Chinese, Japanese, Korean, and Vietnamese) ideograph, as defined by the Unicode Standard.

Parameters: One parameter is required for this method.

codePoint: the character (Unicode code point) to be tested.

Returns: true if the character is a Unicode ideograph character, false otherwise

Exceptions: NA.

Approach

Java

public class CharacterisIdeographic {
    public static void main(String[] args) {

        int codePoint = '#';
        System.out.println(Character.isIdeographic(codePoint));
    }
}

Output:

false

No comments:

Post a Comment