public static boolean isPercentage(String value){
  if (!isInteger(value)) {
    return false;
  }
  Integer integer=Integer.valueOf(value);
  return integer >= 0 && integer <= 100;
}

public static boolean isPercentage ( String value ) { if ( ! isInteger ( value ) ) { return false ; } Integer integer = Integer . valueOf ( value ) ; return integer >= 0 && integer <= 100 ; }
returns true if the provided string argument is an integer in the inclusive range of 0 to 100 .
