搜索资源列表
CircleTest3
- Java Application, Circle test
Test
- 用JAVA写的简单爬虫,使用HttpURLConnection,需要的可以写入循环,然后用htmlparser解析出link。-Used to write simple JAVA reptiles, the use of HttpURLConnection, need to be written into the circle, and then resolve htmlparser out link.
Okregi
- Test for circle class in Java
circle
- 实现测试两个类的ClassTest类。该类在main方法中分别创建若干个Point对象和Circle对象,并调用相关方法-Two classes of test ClassTest class. Class, respectively, in the main method to create a number of Point objects and Circle object, and call the relevant method
AreaAndLength
- 类的封装 1. 实验目的 使用类来封装对象的属性和功能。 2. 实验要求 (1)编写一个简单的Java应用程序,该程序中定义3个类:Tangle、Lader和Circle,分别用来刻画“三角形”、“梯形”和“圆形”,具体要求如下: Tangle类具有类型为double的三条边,以及周长、面积属性,具有计算并返回周长、面积以及三条边的功能,另外还要具有一个boolean型的属性,用来判断三个数能否构成一个三角形。 Lander类具有类型为
TestShape
- 写一个父类图形(Shape)(无属性,方法:计算周长,计算面积), 两个子类:矩形(Rect 属性:长,宽;方法:计算周长,计算面积), 圆形(Circle 属性:半径 方法:计算周长,计算面积) 并写一个测试类TestShape,含main方法,创建各个类的对象,用参数化构造方法为属性赋值,输出各个图形的周长和面积。-Write a parent class graphics (Shape) (no properties, methods: calculating p
3
- Java 实验报告 实验要求 (1) 编写Point类,实现相关方法 (2) 编写Circle类,实现相关方法 (3) 编写ClassTest类,并在main方法中创建两个Point对象和两个Circle对象,对象的参数可以用固定值 (4) 调用Point和Circle的相关方法,并把返回值输出到屏幕上。 (5) 把实验1-2的程序制作为2个Java包。 实验中的包名为experiment?,其中?表示实验编号。例如,实验
person-blog
- 学生javascr ipt课程设计之个人网站,源代码,实验报告,网站包括功能模块个人主页,控制面板,我的文章,我的相册,我的圈子,给我留言模块-Students in curriculum design of the website javascr ipt, source code, test reports, websites including personal home page modules, control panel, my article, my albums, my circl
huizhiyuanxing
- 这是一个flash源文件,效果很好,测试平台为flash 8.0(如果提示问题请选择合适的版本试试),代码的效果是:代码绘制圆形-This is a flash source file, the effect is good, the test platform for flash 8.0 (if the question, please select the appropriate version to try), the effect is the code: the code to dra
experiment10
- (1) 编写一个代表圆柱体的Cylinder类,该类是Circle类的子类。Cylinder类包括圆柱体的高度变量height、计算圆柱体的体积方法volume()和计算表面积的方法surfaceArea()。 (2) 编写测试Cylinder类的CylinderTest类,并在该类得main方法中调用Cylinder类的相关方法。 (3) 程序调试通过后填写实验报告。 -( 1) the preparation of a representative cylinder Cylind
ShapeExp1
- 个人原创代码:矩形、圆形、正方形等形状的操作。编写Java Application程序,定义抽象类Shape,抽象方法为showArea(),求出面积并显示,定义矩形类Rectangle,正方形类Square,圆类 Circle,根据各自的属性,用showArea方法求出各自的面积,在main方法中构造3个对象,调用showArea方法。 定义接口DiagArea,其中包含方法double getDiagonal()求对角线长, double getArea()求面积,定义一个矩形类,实现此
JavaApplication7
- 定义一个抽象类Shape代表一个形状类,具有一个计算形状的面积的抽象方法,一个具有计算形状的周长的抽象方法。定义一个Shape类的子类Circle类表示一个圆,,此类具有一个表示半径的成员变量,实现这个类,定义一个单独的类测试此类。定义一个Shape类的子类Retangle类表示一个矩形,,此类具有表示高和宽的成员变量,实现这个类,定义一个单独的类测试此类-Define an abstract class Shape represents a shape class, with a calcul
AssetFileDescriptor_AutoCloseOutputStreamTest
- Test AutoCloseOutputStream life circle for Andriod.
graphics
- 实验一:类与对象实验: 几何图形类的设计 实验目的:掌握用类进行面向对象程序设计的方法,掌握使用对象作为类的成员变量,掌握方法的参数传递,掌握静态域和静态方法。 实验内容:编写4个类:Rectangle、Circle、Geometry、Exa,具体要求如下: ① Rectangle类有double型成员变量表示矩形左上角的位置坐标及矩形的宽和高,要求提供修改和返回各成员变量的方法。 ② Circle类有double型成员变量表示圆心坐标和圆的半径,要求提供修改和返回各成员变量的方