The following example shows how to use Character.isISOControl() API.
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')); } }
true true false false