Mega Code Archive

 
Categories / Java / Data Type
 

Convert Java String to Byte example

public class Main {   public static void main(String[] args) {     Byte bObj1 = new Byte("100");     System.out.println(bObj1);     Byte bObj2 = Byte.valueOf("100");     System.out.println(bObj2);   } }