Converting a String to a byte Number : Convert from String « Data Type « Java
- Java
- Data Type
- Convert from String
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);
}
}
Related examples in the same category