Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

int to byte


int i = 234;
byte b = (byte) i;
System.out.println(b); // -22
int i2 = b & 0xFF;
System.out.println(i2); // 234

Source by codefantasy.org #
 
PREVIOUS NEXT
Tagged: #int #byte
ADD COMMENT
Topic
Name
5+2 =