ConvertDataTypes
.com
Convert data types programming in one click !
Languages :
C
-
C++
-
Objective C
-
Java
-
JavaScript
-
Python
-
C#
-
VB
-
VB.net
Convert :
boolean
byte
byte[]
char
double
float
int
long
short
String
To :
boolean
byte
byte[]
char
double
float
int
long
short
String
Convert
byte[]
to
long
in
Java
12904 hits
byte[] vInt = new byte[] {
(byte)(9223372036854775807L >>> 56),
(byte)(9223372036854775807L >>> 48),
(byte)(9223372036854775807L >>> 40),
(byte)(9223372036854775807L >>> 32),
(byte)(9223372036854775807L >>> 24),
(byte)(9223372036854775807L >>> 16),
(byte)(9223372036854775807L >>> 8),
(byte)9223372036854775807L};
long vOut = (vInt[0] << 56)
+ ((vInt[1] & 0xFF) << 48)
+ ((vInt[2] & 0xFF) << 40)
+ ((vInt[3] & 0xFF) << 32)
+ ((vInt[4] & 0xFF) << 24)
+ ((vInt[5] & 0xFF) << 16)
+ ((vInt[6] & 0xFF) << 8)
+ (vInt[7] & 0xFF);
The most viewed convertions in Java
Convert
long
to
double
in
Java
44552 hits
Convert
byte
to
boolean
in
Java
39988 hits
Convert
boolean
to
byte[]
in
Java
30241 hits
Convert
long
to
short
in
Java
28393 hits
Convert
long
to
boolean
in
Java
24523 hits
Convert
boolean
to
byte
in
Java
24478 hits
Convert
char
to
double
in
Java
24404 hits
Convert
boolean
to
int
in
Java
23473 hits
Convert
char
to
boolean
in
Java
21177 hits
Convert
char
to
long
in
Java
20957 hits
Convert
char
to
float
in
Java
19896 hits
Convert
byte
to
char
in
Java
19777 hits
Convert
int
to
short
in
Java
19702 hits
Convert
boolean
to
double
in
Java
18892 hits
Convert
short
to
boolean
in
Java
18580 hits
Convert
boolean
to
char
in
Java
18453 hits
Convert
long
to
float
in
Java
18334 hits
Convert
double
to
boolean
in
Java
17236 hits
Convert
long
to
char
in
Java
16831 hits
Convert
float
to
long
in
Java
16310 hits