登录
首页 » Java » 2008010

2008010

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

  • LodeRunner-Source
    Played a very sweet as possible remained the member of my sons dirty my time
    2013-07-19 15:48:56下载
    积分:1
  • AjaxSpringMVC2AnnotationsCode
    Example how to use Spring MVC, query and ajax
    2013-01-09 12:02:15下载
    积分:1
  • hydroelement
    水库调度中的基本类,主要用于发电调度,包括水库类、曲线类、发电调度图类等(A basic Java code package for reservoir dispatch,consist of hydrostation class、curve class、dispatch graph class,etc.)
    2020-11-30 15:09:27下载
    积分:1
  • ProducerConsumerProblem
    说明:  关于操作系统生产者与消费者的源码,没有解压密码.(operating system on producers and consumers of the source, without extracting passwords.)
    2005-11-06 16:05:24下载
    积分:1
  • databaseApplication
    基于java的mysal数据库应用,学生选课系统。工程文件,包含mysql建表文件(Mysal java-based applications, student elective system. Project file that contains the file mysql built table)
    2014-12-08 22:10:56下载
    积分:1
  • JtableDemo
    这是一个简关的JAVA程序,主要作用是体验出JTable的功能(This is a JAVA Jane clearance procedures, the main role is to experience the functions of a JTable)
    2008-04-10 20:55:42下载
    积分:1
  • WhatisSOA
    什么是面向服务体系结构,详细介绍了SOA的各种特点及技术。(What is service-oriented architecture, the SOA detail the various features and technology.)
    2007-05-17 14:24:03下载
    积分:1
  • Think-In-Java-4
    java入门必备,适合初学者,非常好用的。(java entry required, suitable for beginners, very easy to use.)
    2014-05-31 22:43:36下载
    积分:1
  • Cascade
    cascade密钥协商的程序,希望对大家有所帮助吧(this is a programme of cascade key Java)
    2019-06-26 17:04:48下载
    积分:1
  • java-Program
    点到点通信聊天程序 网络编程 实现客户机与服务器之间通过键盘输入的通信(Commuation Program)
    2011-05-25 22:25:10下载
    积分:1
  • 696518资源总数
  • 106155会员总数
  • 8今日下载