登录
首页 » Java » 2008010

2008010

于 2009-12-24 发布 文件大小:2KB
0 72
下载积分: 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 个回复

  • CreateFPTree
    用java实现关联分析的算法代码GreatFPtree(java GreatFPtree)
    2012-03-20 22:45:53下载
    积分:1
  • Java
    Useful Java documents for developers.
    2015-06-19 14:00:21下载
    积分:1
  • android-BluetoothSPP
    蓝牙串口程序,实现蓝牙模块与手机连接。。。(android bluetooth uart)
    2014-11-28 20:07:27下载
    积分:1
  • contact-management-system
    java的通讯录,有查找联系人,添加联系人,显示联系人,保存联系人等功能(contact management system)
    2016-06-15 15:26:40下载
    积分:1
  • idleaf
    说明:  美团点评分布式ID生成系统中Leaf-segment数据库方案的实现(US Mission Review Implementation of Leaf-segment Database Scheme in Distributed ID Generation System)
    2019-11-14 22:49:50下载
    积分:1
  • src
    实现对象的序列化与反序列化,定义一个student对象,实现对对象的添加、删除、修改、退出等的操作。(To achieve the object serialization and deserialization, define a student objects to realize the object to add, delete, modify, withdraw from such operations.)
    2010-05-09 21:42:30下载
    积分:1
  • Java_Hacking_Exposed
    J2EE Java黑客大曝光:开发安全的Java应用程序(J2EE Java Hacking Exposed: the development of Java application security)
    2010-12-18 10:12:11下载
    积分:1
  • JPEG-Algorithm
    JPEG Algorithm using java
    2011-10-05 08:13:16下载
    积分:1
  • MyPowerSys
    FrameWork,通用权限管理系统,可自动生成代码,快速开发。(FrameWork, universal rights management system that can automatically generate code, rapid development.)
    2014-05-18 01:53:48下载
    积分:1
  • dwr_ajax_login
    struts、hibernate、spring和dwr实现的ajax登录,(struts, hibernate, spring and dwr ajax implementation log)
    2010-11-02 15:44:21下载
    积分:1
  • 696518资源总数
  • 104226会员总数
  • 29今日下载