-
编写一个线段类 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
-
GB2312
GB2312--unicode解决java环境中乱码问题的一些方法;-GB2312 unicode to resolve the issue of java environment garbled some ways
- 2022-04-09 13:58:20下载
- 积分:1
-
Java paradigm procedures ch10.rar
Java范例程序ch10.rar-Java paradigm procedures ch10.rar
- 2023-03-21 18:55:04下载
- 积分:1
-
一个简单的java聊天程序:实现简单多线程计数器系统。
用java实现简单的:简单聊天程序
多线程
计数器
记事本
马鞍点
扇子
学生成绩管理系统
异常处理
字符串类-java with a simple realization : Chat simple procedures multithreading counter saddle point in the notebook fan student performance management system Exceptions string category
- 2022-06-26 04:24:45下载
- 积分:1
-
JXTA对等,具有的基本功能
jxta中的peer,具有基本功能-jxta peer, has the basic function
- 2022-02-04 06:10:31下载
- 积分:1
-
with LCD calculator
带液晶显示的计算器-with LCD calculator
- 2022-02-02 08:06:53下载
- 积分:1
-
java简单的在线聊天程序,通过IP添加好友
java简易在线聊天程序,通过IP加好友-java simple online chat program, through the IP Add Friend
- 2022-01-21 20:34:15下载
- 积分:1
-
李萨如图形的JAVA实现
李萨如图形的JAVA实现-Lissajous figure JAVA
- 2022-02-12 01:59:24下载
- 积分:1
-
跟着鼠标动的三维立体
跟着鼠标动的三维立体-mouse with the three-dimensional dynamic
- 2023-08-18 23:20:03下载
- 积分:1
-
一个比较普通的模拟手机通讯录的程序
可以选中联系人,进行呼叫、短信、编辑等功能!
比较简单,但是源码涉及Java基础面很广,考点很好的。
对新手帮助...
一个比较普通的模拟手机通讯录的程序
可以选中联系人,进行呼叫、短信、编辑等功能!
比较简单,但是源码涉及Java基础面很广,考点很好的。
对新手帮助很大!-A more common analog cell phone address book program
- 2023-02-27 02:30:04下载
- 积分:1