private static Integer decodeInt(String token){
  try {
    return Integer.decode(token);
  }
 catch (  NumberFormatException e) {
    return null;
  }
}

private static Integer decodeInt ( String token ) { try { return Integer . decode ( token ) ; } catch ( NumberFormatException e ) { return null ; } }
decodes an integer string representation and returns the associated integer or null in case of an invalid number format .
