登录
首页 » Java » 2008010

2008010

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

  • java
    关于Java多线程编程的书。有对Java多线程编程的详解。对学习Java多线程很有帮助(It s helpful for learning Java)
    2015-12-15 11:47:36下载
    积分:1
  • 新闻发布系统 News-master
    说明:  新闻发布系统,运用知识java servlet jdbc jsp 前台系统i加后台管理(News release system, using knowledge java servlet JDBC JSP foreground system I plus background management)
    2020-06-19 09:15:41下载
    积分:1
  • ChooseCourse
    一个简单的选课系统的代码,在Myeclipse2014上开发,使用ssh框架,使用mysql为数据库端(A simple version of choose course for student developed on Myeclipse2014, using ssh as framework, mysql as drive)
    2020-12-21 09:29:08下载
    积分:1
  • oo
    说明:  开发通用的权限系统。2. 系统架构:struts2.8+hibernate3.5+spring3.0 (Development of generic permissions system. 2. System architecture: struts2.8+hibernate3.5+spring3.0)
    2012-08-31 18:19:06下载
    积分:1
  • JSlider-Example
    javaslidercode for java beginner
    2014-11-07 17:23:36下载
    积分:1
  • forum.0.8.1
    nemesis forum -- JSP(nemesis forum- JSP)
    2009-06-03 10:26:07下载
    积分:1
  • CursorLoaderListFragment
    fragment开发 ,详细介绍了fragment使用(fragment development, detailing the fragment using)
    2013-08-02 15:32:01下载
    积分:1
  • OralceBMPMgr
    大型客户关系管理系统 oracle数据库 附上完整需求分析说明 功能没有完全实现 有待完善 有完整html代码(Large-scale customer relationship management system oracle database attach a complete needs analysis function is not fully complete html code needs to be improved)
    2012-11-29 23:13:48下载
    积分:1
  • spring-study
    spring学习程序,用于学习新技术,使用JAVA语言,IDEA环境(spring study procedure, use java)
    2020-06-21 17:40:01下载
    积分:1
  • Java-from-the-rookie-to-Benniao
    在众多朋友的支持和鼓励下,《Java程序员由菜鸟到笨鸟》电子版终于和大家见面了。本电子书涵盖了从java基础到javaweb开放框架的大部分内容。(In many friends for their support and encouragement, " Java programmers from the rookie to Benniao" electronic version, and we finally met. The book covers most of the content from the java-based to javaweb open framework.)
    2014-04-21 21:01:53下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 42今日下载