-
2008010
编写一个线段类 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)
- 2009-12-24 14:03:10下载
- 积分:1
-
calabarstorm
storm+kafka+matlb集成测试,由于jar太大,jar没有上传(storm+kafka+matlb integration testing, due to the jar is too big, jar not uploaded)
- 2016-01-14 11:28:15下载
- 积分:1
-
mysql导入数据至hbase
导入mysql中的结构型数据到hbase中,支持在hbase中自动建表,copy数据至hbase。
完成了sql型数据库与no-sql的链接,hbase中而已查找到完整的表结构。
- 2022-04-12 17:43:55下载
- 积分:1
-
ERP
ERP教材,内容包括ERP的发展历程,ERP的设计方法。(ERP materials, including the development process of ERP, ERP' s design.)
- 2010-07-29 18:17:24下载
- 积分:1
-
B/S的教育部群组管理 JSP页面 可以参考
B/S的教育部群组管理 JSP页面 可以参考 -B/S s ministry of education group manager JSP page can reference
- 2022-11-13 07:10:03下载
- 积分:1
-
certcache
管理cert的工具使用java.一定要下哦(mange cert took in java)
- 2010-12-16 17:18:44下载
- 积分:1
-
java操作excel的类
java操作excel的类-java class operation excel
- 2022-05-13 07:36:46下载
- 积分:1
-
北大java教程
北大java教程-Beijing University Guide
- 2022-02-03 00:13:18下载
- 积分:1
-
Java2实用教程(清华大学出版社)中的所有例题程序!
Java2实用教程(清华大学出版社)中的所有例题程序!-Java2 Practical Guide (Tsinghua University Press) Examples of all procedures!
- 2023-08-06 10:05:03下载
- 积分:1
-
httpcomponents-client-4.3-bin
1、GET方式
第一步、创建一个客户端,类似于你用浏览器打开一个网页
HttpClient httpClient = new HttpClient()
第二步、创建一个GET方法,用来获取到你需要抓取的网页URL
GetMethod getMethod = new GetMethod("http://www.baidu.com")
第三步、获得网址的响应状态码,200表示请求成功
int statusCode = httpClient.executeMethod(getMethod)
第四步、获取网页的源码
byte[] responseBody = getMethod.getResponseBody()
- 2013-09-16 16:51:49下载
- 积分:1