code: public static boolean isGraphic(char c) {
          int gc = Character.getType(c);
          return     gc != Character.CONTROL
                  && gc != Character.FORMAT
                  && gc != Character.SURROGATE
                  && gc != Character.UNASSIGNED
                  && gc != Character.LINE_SEPARATOR
                  && gc != Character.PARAGRAPH_SEPARATOR
                  && gc != Character.SPACE_SEPARATOR;
      }
docs: Returns whether this character is a printable character.