登录
首页 » Java » 2008010

2008010

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

  • Exp_Tab
    可以实现安卓中TabHost选项卡的功能,并且用意图进行跳转(Can realize the function of the TabHost TAB in the android, and with intention to jump)
    2013-12-19 11:24:05下载
    积分:1
  • an35n
    Monteboard an35n - Poza placa de baza
    2014-05-06 02:31:39下载
    积分:1
  • JavaVistaLoginframe
    这是一个仿VIsta界面的源码,里面这个界面和vista得界面很相似。(This is an imitation VIsta source code interface, which interfaces of this interface and the vista was very similar.)
    2010-03-14 19:48:59下载
    积分:1
  • Wumpus
    采用Agent机制,用Java语言实现的一个小游戏,使怪兽在不落入陷阱的前提下拾获所有金币。(Agent mechanism used by Java language implementation of a small game so that monsters do not fall into the trap at the premise of all gold coins Found.)
    2020-11-11 21:39:44下载
    积分:1
  • Struts2-tags
    Struts2常用标签总结 - OPEN 开发经验库 PDF(struts2 Tag summary )
    2014-09-09 13:52:21下载
    积分:1
  • jk3d
    克里金插值算法的实现,包括3D的插值算法(Implementation of Kriging algorithm)
    2019-05-23 16:45:20下载
    积分:1
  • CFOPJAVA
    魔方 java F2L OLL PLL 3D 动画(Cube java F2L OLL PLL 3D Animation)
    2010-05-22 01:24:53下载
    积分:1
  • itext
    itext2.07 转PDF、itext API 、java+用iText生成Word文件、中文帮助文档( itext2.07 turn PDF, itext API, java+ generated Word file using iText, Chinese help documentation)
    2020-11-14 12:09:43下载
    积分:1
  • 8583解包工具
    8583解包工具.rar, 8583报文组包解析源码,可以和银联的POS后台连接。(8583 unpacking tool. rar, 8583 packet group parsing source code, can be connected with the POS background of UnionPay.)
    2020-06-18 16:00:02下载
    积分:1
  • SSH2web
    先它是一个开源的项目;它是一个基于IoC和AOP的构架多层j2ee系统的框架,但它不强迫你必须在每一层 中必须使用Spring,因为它模块化的很好,允许你根据自己的需要选择使用它的某一个模块(First it is an open source project it is a framework based on IoC and AOP framework for multi-j2ee system, but it does not force you to use in each layer must be Spring, because it is very modular, allowing you to according to their need to select a module to use it)
    2011-06-27 17:06:34下载
    积分:1
  • 696516资源总数
  • 106409会员总数
  • 8今日下载