登录
首页 » Java » 2008010

2008010

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

  • sql数据库查询_java
    说明:  JAVA 连接SQL server,并从数据库中查询数据,输出信息(Java connects to SQL server, queries data from database and outputs information)
    2020-03-11 20:43:06下载
    积分:1
  • hc_characterdatareplacedatabegining
    import org.w3c.domts.DOMTestDocumentBuilderFactory .
    2013-11-28 14:47:58下载
    积分:1
  • extjs4.2-paging-combo-dynamic
    extjs4.2 combo动态分页条数实例源码,自己看,不明白的加群一起学习110888868(extjs4.2 the number of paging combo dynamic source)
    2013-11-26 09:20:03下载
    积分:1
  • Ellipsoid
    编写一个Ellipsoid类,用于椭球体的表示,其中定义三个私有变量表示一个椭球体的长半轴a短半轴b和扁率apha(Write a Ellipsoid class, used to represent the ellipsoid, which defined three private variables represents an ellipsoid semimajor axis semiminor axis B and a of APHA)
    2017-10-16 04:39:27下载
    积分:1
  • duanxin
    短信群发功能的实现,还是不错的,有兴趣的可以看看.(To achieve bulk SMS function is good, interested can look at.)
    2014-10-20 16:27:34下载
    积分:1
  • dance
    此游戏模仿前几天流行的跳舞机。游戏时请只最多用两个手指按方向键; 当方向箭头落至深色区域后按下对应的键,连击(HIT)会有更多分数 开发说明: 初期使用Editplus制作,完整注释 而后用Eclipse打包,未将注释转为文档注释 --FJNU CSE 2005 038 Slipper">
    2020-10-21 09:27:24下载
    积分:1
  • rzgisters__getter__performance
    Emulator:1. The information flow process of the OSI reference model: a simulation program is designed to explain the flow of information flow in the OSI reference model and the function of each layer. modulation and
    2019-03-25 21:52:32下载
    积分:1
  • KafkaConsumerProcess
    Java版本的基于多线程的Kafka高性能消费者处理通用程序(Java Version of High Performance Consumer Processing Universal Program Based on Multithread)
    2020-06-17 08:40:02下载
    积分:1
  • 图书馆管理系统javaweb(含数据库脚本)
    tomcat7 eclipse jdk1.8 包含数据库,可以企鹅号咨询调试962175998【核心代码】
    2019-12-06下载
    积分:1
  • SpringBoot
    说明:  springboot框架搭建的一套框架,里面集成了缓存,权限的控制的一些功能(Springboot framework is a set of framework, which integrates some functions of caching, permission control.)
    2020-06-25 19:40:02下载
    积分:1
  • 696518资源总数
  • 105651会员总数
  • 15今日下载