登录
首页 » Java » 2008010

2008010

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

  • internal_error
    Class Dumper extends Base Dumper Source Code for Andriod.
    2014-01-08 14:03:58下载
    积分:1
  • Yufa
    PL/0语言建立一个语法分析程序BLOCK(函数)(..............)
    2010-11-06 10:49:30下载
    积分:1
  • SubscriptedLabel
    JAVA的一个关于标注的小算法很方便的一个东西(One thing about a marked small algorithm JAVA is very convenient)
    2014-05-12 11:27:42下载
    积分:1
  • QuicSort
    显示一个应用界面,可以对数字进行快速排序,并显示交换次数(Digital display the interface of an application, quick sort, and display the number of exchanges)
    2012-12-30 19:56:57下载
    积分:1
  • out
    java编程的的详细图片,用于学习java(Detailed pictures of Java programming, used to learn java)
    2018-05-28 19:17:07下载
    积分:1
  • NewTest
    遍历储存卡内所有图片,放到控件中显示。点击图片跳转到编辑页面。并做了代码优化。(Traverse all the pictures in the memory card, into the control display. Click on the picture to jump to edit pages. And do a code optimization.)
    2013-11-28 10:30:41下载
    积分:1
  • SoccerProject
    这个是一个乐高机器人足球项目,,包括完整的代码(This is a Lego robot soccer project, including the complete code)
    2013-01-30 21:21:13下载
    积分:1
  • 机动.xlsx
    说明:  解密的小功能,可以实现在线解密和加密,还可以实现多种加密解密方式(Decryption of small functions, can achieve online decryption and encryption, but also can achieve a variety of encryption and decryption)
    2020-04-22 14:19:29下载
    积分:1
  • Hibernate
    hibernate的基础教程,实现了对文件的映射(java+hibernate)
    2009-05-16 10:49:55下载
    积分:1
  • chat_Jbuilder2005
    用Jbuilder2005 做的 jsp/servlet 小聊天程序(Jbuilder2005 do with jsp/servlet small chat program)
    2008-06-22 23:52:33下载
    积分:1
  • 696516资源总数
  • 106562会员总数
  • 4今日下载