登录
首页 » Java » 2008010

2008010

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

  • monitor
    capture and monitor using jmf
    2009-12-03 00:47:14下载
    积分:1
  • Exe6_3
    这是关于学生选修和老师教学的代码作业。这是java学习类的时候的作业希望对大家有用(This is about teaching the students and teachers of the code elective operations. This is the java class to learn when operating the hope that useful)
    2013-07-02 17:13:59下载
    积分:1
  • FuncExtFunction
    An object of this class represents an extension call expression. When the expression executes, it calls ExtensionsTable#extFunction, and then converts the result to the appropriate XObject. @xsl.usage advanced.
    2013-12-02 14:00:24下载
    积分:1
  • Versant
    面向对象数据库实验,建立点线面模型,可以用来学习面向对象数据库(Object-oriented database experiments, point, line and plane model)
    2014-01-03 08:47:07下载
    积分:1
  • Desktop
    基于web的java开发设计,作业管理系统。源码加文档,功能齐全。(Java-based web development and design, and job management system. Source plus documents, fully functional.)
    2015-04-02 16:55:18下载
    积分:1
  • InstrumentationTestSuiteBuilderTest
    Instrumentation Test Suite Builder Test extends Test Case.
    2014-02-17 11:41:25下载
    积分:1
  • Dictionary
    一个简单英汉词典!,可以查询英文单词或中文单词的意思!(A simple English-Chinese dictionary! You can check English words or Chinese word meaning!)
    2011-09-22 21:27:24下载
    积分:1
  • JAVAsp
    Java手机短信项目源码,可以通过手机收发短信(java mobile message)
    2010-05-13 13:48:57下载
    积分:1
  • EG1_Bub
    自己用java实现的冒泡法排序,下载即可以使用。(Yourself using java bubble sort method, downloading, can be used.)
    2013-08-05 16:49:54下载
    积分:1
  • src
    简单的ping实现,包括界面的展现,ping 的结果显示(easy ping command )
    2013-10-23 11:41:48下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载