public class Main { public static void main(String[] args) { String str = new String("10"); byte b = Byte.parseByte(str); System.out.println(b); } }