to zmpcoming
不是.我的转换代码如下:
int high = 123;
int low = 456; byte h[]=new byte[4];
h=IntToByteArray(high); byte l[]=new byte[4];
l=IntToByteArray(low); byte n[]=new byte[8]; System.arraycopy(h,0,n,0,4);
System.arraycopy(l,0,n,4,4); num=BytesToLong(n);不知我的对不对?
不是.我的转换代码如下:
int high = 123;
int low = 456; byte h[]=new byte[4];
h=IntToByteArray(high); byte l[]=new byte[4];
l=IntToByteArray(low); byte n[]=new byte[8]; System.arraycopy(h,0,n,0,4);
System.arraycopy(l,0,n,4,4); num=BytesToLong(n);不知我的对不对?
解决方案 »
- 请问 编写一个小程序关于时间问题!
- 提取一个java文件中的所有字符串
- eclipse下的打包 成jar问题 用到一些资源文件 如配置文件\还有一些用到的图片 这些资源打包时候怎么办
- 关于super的疑惑
- 请教个问题!
- applet中如何去做网络连接呢???
- java.net.URL的openConnection()中如何确认链接已经打开了?
- 请问如何把Table对象的title字体的颜色置为灰色,即:改变“表头”字体颜色。
- for循环的问题
- 用jar命令打包时不能生成Main-Class:怎么办
- 关于iterator的疑问
- 如何判断输入的是一个数字(比如:float类型)而不是有数字外的数据?
可以用bigdecimal
否则越界了,所以会产生负数