How to determine whether a character is mirrored according to the Unicode specification in Java

1 Answer

0 votes
package javaapplication1;
 
public class JavaApplication1 {
 
    public static void main(String[] args) {
 
        char ch = '[';

        boolean b;
        
        b = Character.isMirrored(ch);
        System.out.println(b);
        
        System.out.println(Character.isMirrored('#'));
        System.out.println(Character.isMirrored('a'));
    }
}
 
/*
run:

true
false
false
 
*/

 



answered Sep 15, 2016 by avibootz
...