public static byte parseByte(java.lang.String s,int radix) throws java.lang.NumberFormatException {
  int intValue=Integer.parseInt(s,radix);
  byte result=(byte)intValue;
  if (result == intValue) {
    return result;
  }
  throw new NumberFormatException("Value out of range for byte: \"" + s + "\"");
}

public static byte parseByte ( java . lang . String s , int radix ) throws java . lang . NumberFormatException { int intValue = Integer . parseInt ( s , radix ) ; byte result = ( byte ) intValue ; if ( result == intValue ) { return result ; } throw new NumberFormatException ( "Value out of range for byte: \"" + s + "\"" ) ; }
assuming the specified string represents a byte , returns that byte ' s value . throws an exception if the string cannot be parsed as a byte .
