ISWHITESPACE JAVA


import java.lang.*;
  
public class gfg {
  
    public static void main(String[] args)
    {
  
        // create 2 char primitives c1, c2
        char c1 = '/', c2 = '\f';
  
        boolean b1 = Character.isWhitespace(c1);
        boolean b2 = Character.isWhitespace(c2);
  
        String str1 = "c1 is a Java whitespace character is " + b1;
        String str2 = "c2 is a Java whitespace character is " + b2;

        System.out.println(str1);
        System.out.println(str2);
    }
}


// OUTPUT
//  c1 is a Java whitespace character is false
//  c2 is a Java whitespace character is true
//
Zealous Zebra