-
编写一个线段类 MyLine,要求如下:
主要属性有: x ,y ;类型为Point (查看API)
编写构造方法,如 MyLine(Point p1...
编写一个线段类 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
- 2022-05-10 16:17:22下载
- 积分:1
-
Jive (J Road version) Jive (J Road version) is version 2.1 of the Jive adapted o...
Jive(J道版) Jive(J道版)是在Jive 2.1版本基础上改编而成,增加一些功能,更加实用,本下载包中包括源程序,你可以修改为你自己的网站定制。 学习Jive源程序,可以更好的理解和应用设计模式,学习Java必须读懂两套源代码,第一个就是Jive 第二个是Sun的宠物店Pet Store. 关于Jive,道友yesky12一段话非常精辟: 设计模式和面向对象的思想是java学习的内功,而jive无疑是九阴真经。 Jive论坛的优点是由于采用缓冲机制,可以承受巨大访问量,同时能保持快速反应,在国外站点采用很多。Jive从2.5以后就不再无条件的开放源代码,同时有licence限制。 Jive(J道版)包括完整的源程序和可直接运行的配置,Jbuilder7可直接打开,本版本不但取消了licence的限制,同时增加了jive高版本的内容,努力把Jive建成一个功能更强大的虚拟社区软件。-Jive (J Road version) Jive (J Road version) is version 2.1 of the Jive adapted on the basis of which, some additional functions, more practical, the download package includes source code, you can modify for your own customized Web site. Learning Jive source, we can better understand and application design patterns, learning Java must understand two sets of source code, a Jive is the second of Sun"s pet Pet Store. On Jive, Friends Road yesky12 very incisive words : design patterns and object-oriented thinking of java study the internal organs, and jive is no doubt but his form is signed. J
- 2023-06-03 14:40:06下载
- 积分:1
-
tini的WebLightsServerPC程序,很有参考价值,是经过试用的啊
tini的WebLightsServerPC程序,很有参考价值,是经过试用的啊-tini WebLightsServerPC the procedures of great reference value, After the trial is ah
- 2022-02-05 14:08:17下载
- 积分:1
-
类和对象讲义.rar
类和对象讲义.rar-classes and objects lectures. Rar
- 2022-02-05 02:44:29下载
- 积分:1
-
描述Struts与IBatis框架的结合,描述二者之间的整合工作
描述Struts与IBatis框架的结合,描述二者之间的整合工作-Describe the combination of Struts framework and IBatis describe the integration between the two
- 2022-03-23 05:48:11下载
- 积分:1
-
JNI(java本地接口)之delphi版
JNI(java本地接口)之delphi版-JNI (local java interface) of delphi version
- 2022-07-16 11:00:43下载
- 积分:1
-
This program uses a button to load a <http://www.un.org/arabic/documents/SCCo...
This program uses a button to load a document from a URL-This program uses a button to load a
- 2022-11-13 12:10:04下载
- 积分:1
-
一个applet程序
一个applet程序-an applet
- 2022-08-25 15:20:42下载
- 积分:1
-
用java实现电工上的矩形波合成演示,可以清楚的看到合成的变化过程。...
用java实现电工上的矩形波合成演示,可以清楚的看到合成的变化过程。-Using java to achieve the rectangular electrical wave synthetic presentation, you can clearly see the synthetic process of change.
- 2022-02-04 21:44:35下载
- 积分:1
-
功能:最简单的显示JTree的示例.
功能:最简单的显示JTree的示例. -Function: the simplest example of JTree display. Features: The most simple example shows that the JTree.
- 2022-04-19 16:17:47下载
- 积分:1