Online Java Compiler By
JavaTpoint.com
public class JavaByteParseByteExample2 { public static void main(String[] args) throws NumberFormatException { String str="67"; //throws an exception if the radix is less than zero int radix=0; int val=Byte.parseByte(str,radix); System.out.println(val); } }
Output