搜索资源列表
hm6
- 抽象类的使用 设计一个类层次,定义一个抽象类--形状,其中包括有求形状的面积的抽象方法。 ----继承该抽象类定义三角型、矩形、圆。 ----编写一个主程序将一个三角形、矩形、圆存入一个数组中,将数组中各类图形的面积输出。-kind of abstract designs a class hierarchy, the definition of an abstract category -- shape, These include the shape of the area fo
strout
- 设一个班有10名学生,每个学生有姓名、学号、成绩等信息,请利用对象数组的概念编程,求平均成绩。-set up a class had 10 students, with each student's name, school, results and other information. Please use the concept of object array programming, seeking average scores.
wodetanke
- 全面运用所学的JAVA理论对所设计的类进一步完善,并学会使用数组存储游戏地图数据,并能运用图形绘制方法和一定的算法将地图在游戏中绘制出来,并能控制游戏角色在地图可行走区域运动。-comprehensive study of the use of Java theory designed to further improve the class, and learning how to use the array game map data storage, and will be able to
Java学习示例代码
- /** The CatDist class is for representing a distribution of categories. A * CatDist object is produced by a categorizer during the scoring process. * A loss function may optionally be applied to the CatDist. <P> * It is a
Vigenere
- 一个关于维吉尼亚密码的编程,用java实现,用String类和数组实现,比较经典-A password on the Virginia program, with java implementation, with the String class and an array of implementation, more classic
263_TestStudent
- 课程类有名字,学生数组,老师,学生个数属性。 有增加学生方法,查看课程信息方法,查看课程详细信息方法,查询学生信息方法 -Course class has the name of the array of students, teachers, students number of attributes. There are methods of increasing the number of students to view course information methods, view
6
- 2、 声明测试类TestStudent完成对多态性的测试:(1)在主方法中声明Student类的数组(含五个元素)。(2)生成五个对象存入数组,其中三个Student类的对象、一个StudentXW类的对象、一个StudentBZ类的对象。(3)将方法testScore()发送给数组的每一个元素,输出结果,并分析具体执行的是哪一个类中的方法。-2, statement completion of testing polymorphisms TestStudent type of test: (1
java_applet
- Applet类与Applet小程序,数组 向量 字符串 递归 排序-Applet applet Applet class, recursive sort string array vector
Jakarta_Commons_study
- 从Jakarta Commons CookBook中整理出来的非常有用的类和方法,以方便的方法解决了诸如数组操作、日期操作、字符串操作、数字操作、文件操作等常见的问题。这是在java web应用中常见的commons-*.jar包中的内容-The very useful class and method finishing out from Jakarta Commons CookBook, to facilitate the solution of such operations of ar
Matrix
- Matrix类。该类包括矩阵行列数变量int rows和int cols,矩阵数据数组double data[][],构造方法Matrix()、Matrix(int rows,int cols)、Matrix(int rows,int cols,double data[][]),获取某元素值的方法getData(int row,int col),设置某元素值的方法setData(int row,int col,double value),计算两个矩阵的乘积的方法multiply(Matrix m
javaconnection
- java通讯录课程设计,序使用了ObjectInPutStream和ObjectOutPutStream这两个文件输入输出流,利用这两个文件输入输出流,可以方便的直接将通讯记录对象直接写入文件中,另外为了方便添加和删除一条记录还使用了系统的对象数组类Arraylist。同时也方便了查找操作 -java address book curriculum design, sequence using ObjectInPutStream and ObjectOutPutStream input an
ClassroomsClass
- 写一个教室类,有学生/老师/网管 其中学生人数可以不同,但是开班以后,人数必须固定(数组) 老师只有一个,所有教室共享(static) 网管所有教室共享,并且不变. 要求实现代码以后,创建一个教室对象-Write a classroom class, a student/teacher/network management in which the number of students may be different, but the classes later, the
hibernate_hql
- 1、简单属性查询【重要】 * 单一属性查询,返会属性结果集列表,元素类型和实体类中相应的类型一致 * 多个属性查询,多个属性查询返会对象数组,对象数组的长度取决于属性的个数 对象数组中元素的类型取决于属性在实体类中的类型 * 如果认为返会数组不够对象化,可以使用hql动态实例化Student对象 参见:SimplePropertyQueryTest.java-1, a simple attribute query 【important】* single at
Mouse
- 创建Rodent(啮齿动物):Mouse(老鼠),Gerbil(沙鼠),Hamster(大颊鼠)等的一个继承分级结构。在基础类中,提供适用于所有Rodent的方法,并在衍生类中覆盖它们,从而根据不同类型的Rodent采取不同的行动。创建一个Rodent数组,在其中填充不同类型的Rodent,然后调用自己的基础类方法,看看会有什么情况发生。要求把Rodent定义成为抽象类。-Create Rodent (rodent): Mouse (mice), Gerbil (sand rat), Hamst
StringStack
- 继承和多态的相关Java源码下载,比较散,像覆盖和重载、对象类Object和它的toString()方法、多态性、动态绑定和一般程序设计、数组线性表ArrayList类、final类、方法和变量、数据域和静态方法的隐藏、调用父类的方法等…… -Inheritance and polymorphism related to Java source code download, more casual, like the cover and heavy, and its object class
EMPLOYEE
- 动1. 请构建一个名为Employee 的Class作为员工类,此类中包含:员工ID(int),姓名(String),性别(”F” or “M”), 年龄(int) 2. 创建至少20个Emplyee对象(ID不重复),存储在数组中; 3. 用户可以通过以下命令表达式在该数组中进行查询: -1. Please build a staff named Employee of the Class as a class, these include: Staff ID (int), nam
com
- 1.理解数组在Java中是复合数据类型 2.掌握一维、二维数组在Java中的实现方法(创建、实例化、初始化) 3.掌握利用for循环对数组进行遍历的方法 4.掌握java.util.Arrays类当中与数组操作相关的方法 -1. Understanding Arrays in Java, is a complex data type 2. Master the one-dimensional, two-dimensional array in Java, the implemen
TestTreeSet
- 这是一个测试treeset容器的小程序,可以用来对array类进行简单的学习~-This is a test treeset container applet can be used for a simple array class to learn ~
array
- 定义一数组,再定义一整型数组,此整型数组属于动态分配大小,所有大小由程序指定,并在此基础上实现反转类、排序类-Define an array, and then define an integer array, the array is dynamically allocated integer size, all size specified by the program, and based on the reverse of this class, sort class
OneArryasTools v1.1-ok
- * 这是一个一维数组的工具类,里面封装了6个方法,分别是 * 1.数组的遍历: print方法 * 2.获取最大值: getMax方法 * 3.获取最小值: getMin方法 * 4.反转数组:revArray方法 * 5.数组升序(从小到大排列):asc * 6.数组降序(从大到小排列):desc * * 备注:显示的同时带数组返回,加个接收类型就可以了。 * * @author wuxiaolong * @version v1.1(* this