登录
首页 » Java » 2008010

2008010

于 2009-12-24 发布 文件大小:2KB
0 156
下载积分: 1 下载次数: 25

代码说明:

  编写一个线段类 MyLine,要求如下: 主要属性有: x ,y ;类型为Point (查看API) 编写构造方法,如 MyLine(Point p1 , Point p2) 编写5个成员方法。如: 检查线段是否位于第一象限check()… 求线段的长度 length() … 判断两条直线是否相交(另一线段作为参数)。 编写一点到该线段(或延长线)的距离 其他方法。 注:编写方法时,考虑利用Point类的方法 编写测试程序 (Write a segment class MyLine, requirements are as follows: The main attributes are: x, y type Point (see API) the preparation of construction methods, such as MyLine (Point p1, Point p2) prepared by five members of the method. Such as: Check whether the line segment in the first quadrant check () ... order to segment the length of the length () ... to determine whether the two straight lines intersect (the other segment as a parameter). The preparation of 1:00 to the line segment (or extension) of the distance from other methods. Note: The preparation method, consider using the Point class approach to preparing test program)

文件列表:

Myline.class
test.class
test.java

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • nodesetprefix09
    The method setPrefix raises a INVALID_CHARACTER_ERR if the specified prefix contains an illegal character.
    2014-01-15 09:57:45下载
    积分:1
  • PC
    说明:  经典的生产者和消费者问题。图形化界面描述了生产者和消费者问题(The classic problem of producers and consumers)
    2016-09-16 13:23:02下载
    积分:1
  • TuioSimulator_1.4
    说明:  模拟TUIO点击功能设置,可以直接发送请求到数据中(Simulate TUIO click function settings to send requests directly to data)
    2020-06-23 21:00:01下载
    积分:1
  • av258
    Can dynamically adjust the parameters of the operating environment, Energy spectrum analysis and calculation, Thermonuclear using weighting factor.
    2017-09-06 21:01:51下载
    积分:1
  • ClientContextConfigurer
    Client Context Configurer implements ClientContext.
    2014-01-12 18:09:01下载
    积分:1
  • Quartz_Job_Scheduling_Framework
    Quartz Job Scheduling Framework中文版(Quartz Job Scheduling Framework is Chinese version)
    2016-05-01 18:58:46下载
    积分:1
  • kMeans
    基于原型的目标函数聚类方法,数据点到原型的某种距离作为优化的目标函数,利用函数求极值的方法得到迭代运算的调整规则(A prototype based objective function clustering method, the data point to a certain distance from the prototype is used as the objective function of the optimization, and the adjustment rule of the iterative operation is obtained by the method of finding the extremum of the function.)
    2018-05-18 15:17:50下载
    积分:1
  • Libro
    Curso de programación en Java (Versión 6, JDK 1.6.0) Nivel básico Manual del alumno
    2010-11-27 05:51:31下载
    积分:1
  • ideavim
    idea中使用的idea-vim插件离线包(the zip for idea-vim)
    2018-11-14 17:14:39下载
    积分:1
  • iText-Chinese-help-documentatio
    生成pdf文档工具软件Itex中文开发帮助文档,英语菜鸟开发人员的助手(Generated pdf document tool software Itex Chinese developers help documentation, English rookie developers assistant)
    2013-01-22 10:20:21下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载