摘要: 题目代码如上,Method printPrimes() (a)控制流图 (b)当发生数组越界错误时,此时考虑测试用例 t1=(n=3) 和 t2=(n=5)则t2比t1更容易发现错误。 (c)当n=1时可以不通过while循环。 (d) 节点覆盖: { 1,2,3,4,5,6,7,8,9,10,11 阅读全文
posted @ 2016-03-31 00:47 TJUhby2016 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 一、junit,hamcrest,Eclemma的安装及使用 1、下载junit-4.12.jar和hamcrest-all-1.3.jar的两个jar包以及eclemma-2.3.3的zip压缩包,如下图 2、先安装junit-4.12和hamcrest-all-1.3.jar到eclipse 在 阅读全文
posted @ 2016-03-19 16:16 TJUhby2016 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 一、findLast() public int findLast (int[] x, int y) {//Effects: If x==null throwNullPointerException// else return the index of the last element// in x 阅读全文
posted @ 2016-03-10 21:34 TJUhby2016 阅读(89) 评论(0) 推荐(0) 编辑
摘要: If mentioned a recently completed software project, it had to be one of my course at the end of last term which is about web development. Because befo 阅读全文
posted @ 2016-03-06 23:42 TJUhby2016 阅读(88) 评论(0) 推荐(0) 编辑