摘要: 中文书p49第7题 a-d a.画出控制流图 b.设计简单的错误,使测试用例t2 = (n=5)比t1 = (n=3)更容易被发现。 将if( isDivisible( primes[i], curPrime){ isPrime = false; break; }中的primes[i],改为prim 阅读全文
posted @ 2016-03-29 23:20 cenjat 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 一、junit 和hamcrest在eclipse中的安装 只需要把junit和hamcrest相应的jar包加入classpath中即可。具体步骤如下: 1.下载junit和hamcrest的jar包 2.按照下面的顺序添加:点击鼠标右键->Build Path-> Configue build 阅读全文
posted @ 2016-03-19 12:31 cenjat 阅读(324) 评论(0) 推荐(0) 编辑
摘要: Below are four faulty programs. Each includes a test case that results in failure. Answer the following questions (in the next slide) about each progr 阅读全文
posted @ 2016-03-10 21:56 cenjat 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 在做登录页面时,选择英文时正常,切换到中文时出现乱码。 原因:编码不一致 解决方法:将英文的资源文件用native2ascii 命令转化为utf-8格式的中文资源文件 阅读全文
posted @ 2016-03-07 18:20 cenjat 阅读(645) 评论(0) 推荐(0) 编辑