java.lang.Character.isDefined(int codePoint)


java.lang.Character.isDefined(int codePoint)

package com.codingdict;



import java.lang.*;



public class CharacterDemo {



   public static void main(String[] args) {



      // create a int primitive cp

      int cp;



      // assign values to cp

      cp = 0x012345;



      // create a boolean primitives b

      boolean b;



      // assign isDefined result of cp to b

      b = Character.isDefined(cp);



      String str = "cp has defined meaning in Unicode is " + b;



      // print b value

      System.out.println( str );

   }

}