2018年3月24日
摘要: a) b) 令MAXPRIMES=4;则对于t2(n=5)会出现ArrayIndexOutOfBoundsException,即越界错误,而t1(n=3)则无法发现。 c)printPrimes(1) d) node coverage: {1,2,3,4,5,6,7,8,9,10,11,12,13, 阅读全文
posted @ 2018-03-24 19:35 blackwiseman 阅读(85) 评论(0) 推荐(0) 编辑
  2018年3月23日
摘要: The brief description that you install junit, hamcrest and eclemma. Junit.jar and hamcrest.jar are included in my lib and Referenced Libraries: Eclemma has been installed and a new launch button ... 阅读全文
posted @ 2018-03-23 13:59 blackwiseman 阅读(89) 评论(0) 推荐(0) 编辑
  2018年3月13日
摘要: Program1 Fault: i>=0 not i>0 not execute the fault: x=null;y=5 execute the fault not error: x=[0,1,2];y=2 Error not failure: x=[2,3,5];y=-1 Program2 F 阅读全文
posted @ 2018-03-13 09:58 blackwiseman 阅读(102) 评论(0) 推荐(0) 编辑
  2018年3月8日
摘要: 之前做过一道acm题,最后就转化为一个最值的问题,下面是错误所在的代码段 ll gmax;int maxid=1; for(int i=1;igmax)tmax=gmax,maxid=i; }我用gmax记录最后的最大值,maxid记录取最大值对应的下标,tmax是个局部变量,表示当前下标求出的结果。 (1)Error: 以上代码的一个明显错误在于当tmax值大于g... 阅读全文
posted @ 2018-03-08 18:18 blackwiseman 阅读(137) 评论(0) 推荐(0) 编辑