文件名称:Triangle
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2013-06-19
- 文件大小:
- 19kb
- 下载次数:
- 0次
- 提 供 者:
- F**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
先创建一个MyPoint类,然后定义Triangle类。在Triangle类中定义三个MyPoint的实例来表示一个三角形的三个点,再定义一个方法setTri对这三个点进行初始化,然后定义两个方法求三角形的周长、面积。在main()中创建一个对象,求给定三点的三角形的周长、面积。-MyPoint first create a class, and then define the Triangle class. In the Triangle class defines three MyPoint instance to represent the three points of a triangle, and then define a method setTri initialize these three points, then define the perimeter of the triangle two methods, area. In main (), create an object, find the three points of the triangle given perimeter, area.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
三角形
......\build
......\.....\classes
......\.....\.......\mypoint
......\.....\.......\三角形
......\.....\.......\......\Point.class
......\.....\.......\......\Triangle.class
......\.....\.......\......\三角形.class
......\build.xml
......\manifest.mf
......\nbproject
......\.........\build-impl.xml
......\.........\genfiles.properties
......\.........\private
......\.........\.......\private.properties
......\.........\.......\private.xml
......\.........\project.properties
......\.........\project.xml
......\src
......\...\三角形
......\...\......\Point.java
......\...\......\Triangle.java
......\...\......\三角形.java