Online Java Compiler By
JavaTpoint.com
public class JavaByteParseByteExample3 { public static void main(String[] args) throws NumberFormatException { //the string shout be a byte number String str="35"; int radix=Character.MAX_RADIX; int val=Byte.parseByte(str,radix); System.out.println(val); } }
Output