Here you can find the source of checkAscii(char c)
public static boolean checkAscii(char c)
//package com.java2s; public class Main { public static boolean checkAscii(char c) { int hv = Integer.parseInt(Integer.toString(c)); if (hv < 32 || hv > 126) { return false; }//from w w w .j av a 2 s . c om return true; } }