Mega Code Archive

 
Categories / Java / Data Type
 

Convert String to primitive byte Example

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