java中的字符和数字

String str = "3832154813577306424";
Long lo = 3832154813577306424l;

System.out.println("string length == " + str.length());
byte[] bytes = ByteUtils.longToBytes(lo);
System.out.println("long length == " + bytes.length);

string length == 19
long length == 8

猜你喜欢

转载自elaine0111.iteye.com/blog/2245559