Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
public class Test3 {
public Test3() {
}
private void doIt() {
byte[] b = new byte[4];
long l = (8* 256 * 256 * 256 + 3 * 256 *256 + 5 * 256 + 7);
long l2 = l;
System.out.println("long = " + l);
for (int i=0; i<4; i++) {
b[i] = (byte)(l % 256) ;
l = l / 256;
System.out.println(" byte[" + i + "] = " + b[i]);
}
l = l2;
for (int i=3; i>=0; i--) {
b[i] = (byte)(l % 256) ;
l = l / 256;
System.out.println(" byte[" + i + "] = " + b[i]);
}
}
public static void main(String[] args) {
Test3 example = new Test3();
example.doIt();
}
}