static char processCharLiteral(String entity) {
    if (entity.charAt(2) == 'x') {
      entity = entity.substring(3, entity.length() - 1);
      return (char)Integer.parseInt(entity, 16);
    }
    else {
      entity = entity.substring(2, entity.length() - 1);
      return (char)Integer.parseInt(entity, 10);
    }
  }
static char processCharLiteral(String entity)