-
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
-
JAVA-mobile-chess-game
Java手机象棋,界面设计简洁,操作简单,实现智能规则判断,支持大型Web服务器,以Http 协议通信。内附doc和pdf文档(Java mobile chess, interface design is concise, simple operation, intelligent judging rules, support large Web server, with the Http protocol communication. Enclosed doc and PDF documents)
- 2015-01-11 22:53:40下载
- 积分:1
-
Lxyweb
spring+hiberbate+struts简单登入程序(spring struts simple log hiberbate procedures)
- 2006-07-22 14:44:01下载
- 积分:1
-
Jdeveloper
jdeveloper开发的两个功能类,对于一些常用的方法,进行了封闭,非常有用。(Jdeveloper development two functional class after encapsulation, very useful for Java ee developers.)
- 2015-02-14 11:15:50下载
- 积分:1
-
dhgl
电费管理系统比较社和初学者!对实际应用,帮助比较大!(Electricity management system is relatively clubs and beginners! For practical applications, to help big!)
- 2013-12-08 21:38:30下载
- 积分:1
-
17
说明: java编写的eclipse下的编写的安卓平台下益智类游戏——《旋转积木》(prepared under the preparation of java eclipse Andrews platform puzzle game- rotating blocks)
- 2012-05-27 18:08:12下载
- 积分:1
-
SpringThreadExample
说明: 基于springboot实现的多线程并发任务,创建多任务并发执行的DEMO(Multi-threaded concurrent tasks based on spring boot to create DEMO for multi-task concurrent execution)
- 2020-06-21 19:20:01下载
- 积分:1
-
new-java-exercise50
最新JAVA编程题全集_50题及答案,收集了最新的一些java试题,有很详细的解答(Complete _50 latest JAVA programming problems questions and answers, a collection of some of the latest java questions, there is a very detailed answer)
- 2013-09-23 16:15:14下载
- 积分:1
-
discuz-ucenter_api_for_java(内附测试项目)
此项目整合了几个日常常用的框架SpringMVC+Hibernate+MySql+EasyUI,并使用discuz授权登陆(This project integrates several commonly used framework SpringMVC+Hibernate+MySql+EasyUI, and uses discuz authorization landing)
- 2017-11-03 17:17:48下载
- 积分:1
-
securitydemo
spingsecurity的demo,初学者可根据注释和代码进行学习(Spingsecurity demo, beginners can learn from comments and code)
- 2019-06-06 14:19:12下载
- 积分:1