How to determine whether the specified character (Unicode code point) is in the Basic Multilingual Plane (BMP) in Java

1 Answer

0 votes
package javaapplication1;

public class JavaApplication1 {
  
    public static void main(String[] args) {
         
        char ch = 'Z';

        boolean b = Character.isBmpCodePoint(ch);

        System.out.println(b);
    }
}
 
/*
run:

true
 
*/

 



answered Sep 13, 2016 by avibootz
...