-
编写一个线段类 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
-
很好的报表打印工具,支持WORD和EXCEL导出
很好的报表打印工具,支持WORD和EXCEL导出-Very good tools to print statements in support of WORD and EXCEL export
- 2022-06-11 23:00:43下载
- 积分:1
-
Hibernate (著译者: 陈天河等)项目开发宝典本书以Hibernate为核心,详细讲解了基于组件的J2EE应用软件的开发方法。在讲解方式上,使用基础知识...
Hibernate (著译者: 陈天河等)项目开发宝典本书以Hibernate为核心,详细讲解了基于组件的J2EE应用软件的开发方法。在讲解方式上,使用基础知识与具体实例相结合的方式对Hibernate进行了全面、深入、细致的讲解,使读者在学习的过程中可以通过具体的练习来加深对讲解内容的理解和把握。本书在讲解Hibernate的同时,还介绍了经常与Hibernate配合使用的Struts,JSF以及 ring等优秀的框架组件。另外,还涉及到了在开发中常会使用到的开源组件,包括Ant,Digester,XDoclet,Log4j,Ecli e和JFreeChart等。本书的配套光盘中包含了书中所有实例的完整源代码以及在开发中需要用到的开源组件的安装程序。另外,作者提供了交流空间为广大读者进行后续的支持。本书适用于使用Hibernate进行Web应用程序开发的技术人员,同时也非常适合对Hibernate相关技术感兴趣的读者进行学习和提高
- 2022-02-01 07:43:58下载
- 积分:1
-
一个简单的用java实现多线程请求的webserver代码
一个简单的用java实现多线程请求的webserver代码-a simple java using multi-threaded code request webserver
- 2022-07-12 09:31:49下载
- 积分:1
-
一个用java实现输入一维数组并倒序的简便算法
一个用java实现输入一维数组并倒序的简便算法-Using java to achieve a one-dimensional array of input and reverse simple algorithm
- 2022-02-22 03:04:04下载
- 积分:1
-
开发语言 Java
系统架构 Struts + hibernate + spring
数据库 Mysql5.0
应用服务器 Tomcat5.0...
开发语言 Java
系统架构 Struts + hibernate + spring
数据库 Mysql5.0
应用服务器 Tomcat5.0
开发工具 MyEclipse
-Development language Java system architecture Struts+ Hibernate+ Spring database Mysql5.0 application server Tomcat5.0 development tools MyEclipse
- 2022-05-31 09:33:49下载
- 积分:1
-
sendicmp java send icmp packets procedures, based on winpcap. jpcap
sendicmp java 发送icmp包的程序,基于winpcap,jpcap-sendicmp java send icmp packets procedures, based on winpcap. jpcap
- 2022-03-24 18:52:27下载
- 积分:1
-
java输出英文你好吗
java输出英文你好吗-How are you English
- 2022-01-27 18:41:33下载
- 积分:1
-
java 教程源码
java 教程源码-tutorial java source
- 2023-04-28 04:05:03下载
- 积分:1
-
jsp code written in Chinese graphics, support partial validation, partial refres...
jsp写的中文图形验证码,支持局部验证,局部刷新,ajax实现-jsp code written in Chinese graphics, support partial validation, partial refresh, ajax implementation. .
- 2022-01-26 07:51:31下载
- 积分:1