public class Main { public static void main(String[] argv) throws Exception { byte b = Byte.parseByte("123"); System.out.println(b); } }