Character.isSpaceChar(int codePoint) has the following syntax.
public static boolean isSpaceChar(int codePoint)
In the following code shows how to use Character.isSpaceChar(int codePoint) method.
public class Main { /* w w w . j av a 2 s . c o m*/ public static void main(String[] args) { int cp1 = 0x2029; // PARAGRAPH_SEPARATOR int cp2 = 0x1010; boolean b1 = Character.isSpaceChar(cp1); boolean b2 = Character.isSpaceChar(cp2); System.out.println( "cp1 represents a space character is " + b1 ); System.out.println( "cp2 represents a space character is " + b2 ); } }
The code above generates the following result.