搜索资源列表
Java编程思想(《Thinking In Java》中文版)
- 从本书获得的各项大奖以及来自世界各地的读者评论中,不难看出这是一本经典之作。本书共22章,包括操作符、控制执行流程、访问权限控制、复用类、多态、接口、通过异常处理错误、字符串、泛型、数组、容器深入研究、JavaI/O系统、枚举类型、并发以及图形化用户界面等内容。(It is easy to see that this book is a classic from the awards and the readers' comments from all over the world. This
two
- 写一个类Army,代表一支军队,这个类有一个属性Weapon数组w(用来存储该军队所拥有的所有武器),该类还提供一个构造方法,在构造方法里通过传一个int类型的参数来限定该类所能拥有的最大武器数量,并用这一大小来初始化数组w。该类还提供一个方法addWeapon(Weapon wa),表示把参数wa所代表的武器加入到数组w中。在这个类中还定义两个方法attackAll()让w数组中的所有武器攻击;以及moveAll()让w数组中的所有可移动的武器移动。 (6)写一个主方法去测试以上程序。(Wr
2
- 编写一个 类名: Matrix 数据成员:行数,列数,矩阵数组(或指针) 包含功能:1)构造和复制构造函数,析构函数; 2)显示矩阵内容; 3)修改矩阵中某位的值(位置为参数); 4)求矩阵中某行的和(行数为参数); 5)求矩阵中某列的和(列数为参数); 6)求矩阵中的最大,最小值; 7)在主函数中测试;(Write one Class name: Matrix Data members: row number, column number,
9
- 异常:在程序运行过程中发生错误和意外 常见的异常:类型转换不正确,被除数为0,值溢出,数组超过索引范围,打开文件时出错 Exception类(Exception: errors and accidents occurred during program operation. Common exception: the type conversion is incorrect, the divisor is 0, the value overflows, the array exceeds
MdlFuctions
- 这个类模块集合了各种常用的功能,可直接调用,如插值,一维数组最大最小值平均值,冒泡算法,一元线性回归等(This class of modules sets a variety of common functions, which can be called directly, such as interpolation, maximum and minimum mean value of one dimension array, bubble algorithm, linear regress