登录
首页 » Java » 2008010

2008010

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

  • agentlist.rar
    用JAVA开发的售票系统希望能通过,(with JAVA development of the ticketing system hope that through, thank you)
    2006-10-16 21:48:00下载
    积分:1
  • 医疗健康管理类企业
    (注)这里大家经常会出现的问题是“数据库服务器或登录密码无效,无法连接数据库,请重新设定”,出现这个问题是上面的选项您没有填写正确,一般只需填写四项,第一:数据库主机,(数据库主机一般的空间默认是localhost,如果您的空间的数据库主机是localhost,那就不需要填写,如果不是默认的localhost,就填写你的数据库主机)第二:数据库用户,第三:数据库密码,第四:数据库名称,在这说明一下,数据库前缀请勿修改!如果上面的信息您不是很清楚或者不知道,请咨询你购买空间的空间商! 3.安装完成,点击进入后台。(如出现错误页面可 直接 域名/dede进入后台}(Medical health management)
    2020-06-20 16:00:02下载
    积分: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
  • hht
    黄鳄鱼提供的完整Hilbert Huang Transform程序,java源码,含EMD,EMD1,EMD2,频谱,边际频谱,图形界面,测试例程等。(complete java source code for Hilbert- Huang Transform, this package is a official version provide by Professor NordenE.Huang,all class just as EMD,EMD1,EMD2,spectrum,chart etc. are included in it.)
    2015-09-11 12:57:24下载
    积分:1
  • jspTest
    JAVAEE实现的购物车demo,能实现与数据库的连接,具有增加删除修改产品等功能,具有商品页面。(JAVA EE to achieve the shopping cart demo, can achieve the connection with the , with the increase in the deletion of modified products and other functions, with commodity pages.)
    2016-11-03 14:08:46下载
    积分:1
  • DMSetup
    麦咖啡升级中心,升级时直接运行此软件,链接至网络即可,不必再到官网下载,节省大量时间。(escalation center, upgrade the software run directly, link to the network and not network officials then downloaded, save a lot of time.)
    2007-01-11 20:30:22下载
    积分:1
  • baiduMapHisTrajectory
    百度地图轨迹动态播放/暂停/结束,控制速度快慢(map historyTrackPlay)
    2016-12-24 08:52:08下载
    积分:1
  • netbanking
    NETBANKING ONLINE SYSTEM
    2012-12-16 14:21:57下载
    积分:1
  • ReadCSV
    Java beans for read data from CSV file
    2014-02-04 18:39:15下载
    积分:1
  • 循环
    说明:  控制条件语句的变量,在for循环结束后,就不可以被访问了,而while循环还可以访问,如果你继续想使用该变量,则可以使用while循环,否则推荐使用for循环,原因是for循环结束,该变量就从内存中消失,能够提高内存的使用效率。(The variable that controls the conditional statement is not accessible after the for loop has finished, and the while loop is accessible if you continue to use the variable, you can use the while loop. Otherwise, it is recommended to use the for loop, because the variable disappears from memory after the for loop, which can improve memory efficiency.)
    2019-10-12 14:00:38下载
    积分:1
  • 696518资源总数
  • 106010会员总数
  • 4今日下载