-
编写一个线段类 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
-
模拟邮件客户端发送电子邮件 实现多附件 超容量附件以及多种发送方式...
模拟邮件客户端发送电子邮件 实现多附件 超容量附件以及多种发送方式-java sends email
- 2023-05-18 17:10:03下载
- 积分:1
-
JAVA的学习资料
JAVA的学习资料-JAVA learning materials
- 2022-10-10 03:20:02下载
- 积分:1
-
这个是用java编写的记忆力测试游戏。可以供java的初学者学习与提高。...
这个是用java编写的记忆力测试游戏。可以供java的初学者学习与提高。-This is prepared using java memory test game. Java for beginners to learn and to improve the.
- 2022-12-18 04:00:03下载
- 积分:1
-
This book to 15 curriculum design for the framework of the topic, from all aspec...
本书以15个课程设计题目为框架,从各个方面介绍了Java在应用系统开发和网络开发中的技巧。各个课程设计题目相互独立,可以从任何一个课程设计题目开始阅读本书。每个课程设计题目都给出了详细的设计步骤,包括设计内容、总体设计、具体设计、软件发布、课程设计作业等。本书全部程序代码可由前言中指定网站下载。-This book to 15 curriculum design for the framework of the topic, from all aspects of the introduction of the Java application development and web development skills. Curriculum design in various topics are independent of each other, you can design a course from any subject to start reading the book. Curriculum design for each subject are given in detail the design steps, including the design of content, design, concrete design, software publishing, curriculum design and other operations. This book all the program code may be specified in the preamble website.
- 2022-02-05 09:28:56下载
- 积分:1
-
用编译原理方法计算表达式的值,例如(2+3)*84+3这样的复杂表达式
深入体现了面向对象的方法,代码可以很容易进行overwrite...
用编译原理方法计算表达式的值,例如(2+3)*84+3这样的复杂表达式
深入体现了面向对象的方法,代码可以很容易进行overwrite-with compiler theory calculated the value of the expression. For example, (2)* 84 3 such a complex expression reflects the depth of object-oriented methods, code can easily overwrite
- 2023-07-24 19:05:03下载
- 积分:1
-
JAMPACK Grid programming
JAMPACK Grid programming
- 2023-03-14 00:00:04下载
- 积分:1
-
this a code for geting the mib OIDs that you want.something inthe code may be ch...
this a code for geting the mib OIDs that you want.something inthe code may be changed.-this a code for geting the mib OIDs that yo u want.something inthe code may be changed.
- 2022-02-02 14:07:18下载
- 积分:1
-
聊天程序的Server
聊天程序的Server-Chat Server procedures
- 2023-09-08 19:25:03下载
- 积分:1
-
一个Java持久层类库,仿Rails的设计
一个Java持久层类库,仿Rails的设计-Java persistence layer of a class library, like the design of Rails
- 2022-03-25 06:17:09下载
- 积分:1