登录
首页 » Java » 2008010

2008010

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

  • plc(2)
    说明:  swting 实现 PLC socket交互传输数据(Swting realizes interactive data transmission of PLC socket)
    2020-11-07 08:14:01下载
    积分:1
  • ipDial
    使用Java做的安卓的一个小案例,实现了IP拨号的功能(A small case using Java do the Android, the realization of the IP dial function)
    2015-01-13 23:20:56下载
    积分:1
  • HTMLArea在线编辑器
    htmlarea在线编辑器实现了整业的编辑,拼写的检查,还有其他几个例子和插件,希望对网友有所帮助(Besides of the function of editing html file,HTMLArea also has the feature of Spelling-check,and there are some examples and plugs,hope helpful to you.)
    2005-06-30 08:35:12下载
    积分:1
  • Country
    这是一个不错的发送彩信的源码,想要研究彩信的朋友可以看一下。(This is a good source send MMS, wanted to study MMS friend can have a look.)
    2015-05-03 14:06:08下载
    积分:1
  • work_java_boc_bpsk_gnss
    对GNSS中的BPSK、BOC两种调制方法进行分析,从其时域表达式、功率谱密度函数表达式出发,分析其性能、对码跟踪精度的影响。(The two modulation methods of BPSK and BOC in GNSS are analyzed. From the expressions of time expressions and power spectral density functions, the performance and code tracking accuracy are analyzed.)
    2020-12-23 09:09:06下载
    积分:1
  • MPFS21 - Java
    说明:  Module for Microchip TCP/IP Stack
    2020-06-22 10:20:02下载
    积分:1
  • pager
    分页标签,用于程序中对结果集的多条记录进行分页显示。(page)
    2010-01-16 15:26:40下载
    积分:1
  • ch04
    windows这是一个随便选的文档,因为我想下一个东西,但是开会员太贵了(windows This is an optional document, because I want the next thing, but the meeting members are too expensive.)
    2019-06-29 20:45:58下载
    积分:1
  • 计算器
    通过java语言,实现了一个简单方便的计算器。(A simple calculator is implemented.)
    2020-06-25 14:00:01下载
    积分:1
  • com.alibaba.javaStandard
    阿里巴巴Java开发手册(正式版),一共5部分,主要是对Java开发时的一些规范及建议(Alibaba programs the standard)
    2017-03-09 15:10:25下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载