How to determine if a character should be regarded as an ignorable character in a Java or Unicode identifier in Java

1 Answer

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

        b = Character.isIdentifierIgnorable(ch);
        System.out.println(b);

        b = Character.isIdentifierIgnorable('3');
        System.out.println(b);
    }
}
 
/*
run:

true
false
 
*/

 



answered Sep 13, 2016 by avibootz
...