摘要: (b)定义素数列表时,将MAXPRIMES设为4 (c)令n=1 (d)节点覆盖:TR = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15} Test Path = [1,2,3,4,5,6,7,5,6,8,9,10,2,11,12,13,14,12,15] 边覆盖 : T 阅读全文
posted @ 2016-03-31 14:22 conghua 阅读(804) 评论(0) 推荐(0) 编辑
摘要: 1、首先清除select原有的样式 2、写自己定义的样式 3、这样就好啦 (tips:要想写出好看的下拉框,也可以用div模拟select) 阅读全文
posted @ 2016-03-20 11:28 conghua 阅读(630) 评论(0) 推荐(0) 编辑
摘要: 一、安装junit、hamcrest、eclemma 笔者用的是ideal,file --> project structure 左边侧栏选择libraries,左第二侧栏选择“+”(java),依次把需要的junit,hamcrest的jar包和eclemma解压后的文件包添加 二、编写判断三角形 阅读全文
posted @ 2016-03-18 16:23 conghua 阅读(297) 评论(0) 推荐(0) 编辑
摘要: (1)findLast public int findLast (int[] x, int y) { //Effects: If x==null throw NullPointerException // else return the index of the last element // in 阅读全文
posted @ 2016-03-10 19:18 conghua 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 曾经项目中遇到的错误: java大项目中编写一个简单的网上银行系统,其中有一个转账功能,转账金额不超过50元,手续费在本人账户中扣除0.1%。 在测试的时候,用了这几个情况去测试: 1、转账输入20(默认单位都是元) 2、输入—30 3、输入0 4、输入30.56 5、输入字母ab 6、输入600( 阅读全文
posted @ 2016-03-06 13:34 conghua 阅读(196) 评论(0) 推荐(0) 编辑