易截截图软件、单文件、免安装、纯绿色、仅160KB

java运算问题

byte[] temp={0x07,0x08,0x90 ,0x00,0x23,0x53,0x22,0x12.....}
for (int z = 0; z < temp.length; z++) {
numTemp = +temp[z];
}
(1) numTemp = (-numTemp) % 256; 
(2) int temp22=(-(temp[0]+temp[1]+temp[2]+temp[3]+temp[4]+temp[5]+temp[6]+temp[7]+temp[8]+temp[9]+temp[10]))%256;
如果我要按照以上运算。。。怎样防止1和2的结果差别。。。我用1的运算得到2的结果。请问有什么方法
没看懂


numTemp 是int型的


相关问答:

linux下java调用C++库中函数的问题

不知道是什么原因,我该如何处理,请大虾们指教了,小弟在此谢过。。。。
错误信息如下:
The program being debugged was signaled while in a function called from GDB.
GDB has restored the context t ......

Unable to compile class for JSP - Java / Web 开发

<%@page language="java" contentType="text/html;charset=gb2312" import="java.sql.*"%>
<jsp:useBean id="db" class="wang.connectDB"/>
< ......

mapxtreme for java 如何在图层画线?

查API,看到FeatrueFactory有这个方法
public Feature createPolyLine(double[][] thePoints,
                              R ......

天津 招聘兼职(java struts2)

我们有项目想组建一个开发团队,
主要用 tomcat,java,struts2,我们的核心成员都是经验非常丰富的系统设计师,
如果您在天津,同时对java比较感兴趣,
可以加入我们。
希望要求
  1。爱好编程
......

java 取字段名

select a.name as parename ,b.name as chliname,a.typeId as paretype,b.typeid as chlitype from prodkind a inner join prodkind b where a.typeId=b.parentId
查出来的字段名称不是 parename 而是name
se ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号