- 浏览: 25099 次
- 性别:
- 来自: 成都
最新评论
-
a13677985955:
写的不错!赞
电商系统设计 -
calosteward:
谢啦~ sample code很有用。 ___________ ...
java操作tiff
文章列表
int与byte数值相互转化,在网上找了下,发现好多都是错误的,写个自己的。希望能帮到有需要的人:
private static byte[] int2ByteArr(int i) {
byte[] arr = new byte[4];
int m = (i >> 24 ) & 0xff;
int n = (i >> 16 ) & 0xff;
int k = (i >> 8 ) & 0xff;
int d = i & 0xff;
System.out.println(m + ...