Java examples for java.lang:char
is ISO Control Letter
//package com.java2s; public class Main { public static void main(String[] argv) throws Exception { char ch = 'a'; System.out.println(isISOControl(ch)); }/*from w w w. ja va 2s. c om*/ public static boolean isISOControl(char ch) { // return Character.isISOControl(ch); int code = (int) ch; if ((code >= 0x0 && code <= 0x1f) || (code >= 0x7f && code <= 0x9f)) { return true; } else { return false; } } }