PrintableCharFinder { public boolean isPrintableChar(int codePoint) { if (codePoint < 0 || codePoint >= SIZE) throw new IllegalArgumentException("codePoint parameter cannot be greater than " + SIZE + " or less than " + 0); return printableGlyphsBoolean[codePoint]; } private  PrintableCharFinder(); static synchronized PrintableCharFinder getInstance(); boolean isPrintableChar(int codePoint); static void main(String... args);  }
@Test public void testIsPrintableChar() throws Exception { for (int i = 0; i < 30; i++) { assertFalse(pcf.isPrintableChar(i)); } for (int i = 33; i < 40; i++) { assertTrue(pcf.isPrintableChar(i)); } }