Mega Code Archive

 
Categories / Java / Data Type
 

Converting a String to a byte Number

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