tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Java > Core > Character > Is ISO Control Char

Is ISO Control Char 

The following example shows how to use Character.isISOControl() API.

File Name  :  
com/bethecoder/tutorials/core/character/CharIsISOControlChar.java 
Author  :  Sudhakar KV
Email  :  [email protected]
   
package com.bethecoder.tutorials.core.character;

public class CharIsISOControlChar {

  /**
   @param args
   */
  public static void main(String[] args) {
    /*
        ISO control character range
        
      '\u0000' to '\u001F' 
      '\u007F' to '\u009F' 
     */
    System.out.println(Character.isISOControl('\u0000'));
    System.out.println(Character.isISOControl('\u001F'));
    
    System.out.println(Character.isISOControl('\u002F'));
    System.out.println(Character.isISOControl('\u003F'));
  }

}
   

It gives the following output,
true
true
false
false



 
  


  
bl  br