>>380
long angka = 1234;
ByteArrayOutputStream a = new ByteArrayOutputStream();
DataOutputStream b = new DataOutputStream(a);
b.writeLong(angka);
b.close();
byte[] c = a.toByteArray();
ByteArrayInputStream d = new ByteArrayInputStream(c);
DataInputStream e = new DataInputStream(d);
e.skipBytes(4);
int angkaLain = e.readInt();