code: private boolean isInteger(String s, int radix) {
  		Scanner sc = new Scanner(s.trim());
  		if (!sc.hasNextInt(radix))
  			return false;
  		// we know it starts with a valid int, now make sure
  		// there's nothing left!
  		sc.nextInt(radix);
  		return !sc.hasNext();
  	}
docs: Determines if string is an integer of the radix base number system
  provided.
  
  @param s
  String to be evaluated for integer type
  @param radix
  Base number system (e.g., 10 = base 10 number system)
  @return boolean