登录
首页 » Java Develop » 编写一个线段类 MyLine,要求如下: 主要属性有: x ,y ;类型为Point (查看API) 编写构造方法,如 MyLine(Point p1...

编写一个线段类 MyLine,要求如下: 主要属性有: x ,y ;类型为Point (查看API) 编写构造方法,如 MyLine(Point p1...

于 2022-05-10 发布 文件大小:1.99 kB
0 219
下载积分: 2 下载次数: 1

代码说明:

编写一个线段类 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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 动态图片演示 Animation of a series of images.
    动态图片演示 Animation of a series of images.-Dynamic Photo Animation demonstration of a series of images.
    2022-10-18 08:20:02下载
    积分:1
  • 自己些的java版本的按键精灵可以读取配置文件(Voter.action)
    自己些的java版本的按键精灵可以读取配置文件(Voter.action)-Own some of the java version of the button configuration files can be read Elven (Voter.action)
    2022-08-15 21:11:27下载
    积分:1
  • 流聚类算法,利用JAVA语言实现,简单实用。
    流聚类算法,利用JAVA语言实现,简单实用。-Stream clustering algorithm, using JAVA language implementation, simple and practical.
    2023-05-03 07:20:03下载
    积分:1
  • 取得WEB客户机器主机名信息。
    取得WEB客户机器主机名信息。-made mainframe machines Information.
    2022-02-15 00:22:19下载
    积分:1
  • 1. Development Environment: SunShine Guestbook v1.0 development environment used...
    1.开发环境: SunShine留言本v1.0所采用的开发环境为:J2SDK1.42+TOMCAT5.0+ACCESS2000 2.安装说明: SunShine留言本v1.0所有数据均采用数据库存储,采用JDBC连接池,直接连接数据库,不需要配置ODBC数据源即可直接运行。 3.运行环境: SunShine留言本v1.0是基于JSP/JavaBean开发的一套留言本系统,正常使用该软件您必须保证您的服务器满足如下要求: ①系统环境:J2SDK+TOMCAT或更高版本 ②数据库:ACCESS2000或更高版本 ③客户端:使用Windows系统+IE5.0或更高版本 4.管理留言:  SunShine留言本v1.0默认的管理员ID:admin;管理员密码:adminSNDG -1. Development Environment: SunShine Guestbook v1.0 development environment used for: J2SDK1.42+ TOMCAT5.0+ ACCESS20002. Installation instructions: SunShine Guestbook v1.0 database all data are stored, the use of JDBC connection pool, direct Connect database, do not need to configure ODBC data sources can be directly run. 3. Runtime Environment: SunShine Guestbook v1.0 is based on JSP/JavaBean developed a set of messages of the system, the normal use of the software you must ensure that your servers meet the following requirements: ① system environment: J2SDK+ TOMCAT or later ② Database: ACCESS2000 or late
    2022-09-19 04:50:03下载
    积分:1
  • 大名鼎鼎的java动态脚本语言。已经通过了sun的认证
    大名鼎鼎的java动态脚本语言。已经通过了sun的认证-famous java dynamic scripting language. The sun has passed the authentication
    2022-06-29 21:51:38下载
    积分:1
  • java封装好的客户端输入检查
    java封装好的客户端输入检查 -good java package java client to check the importation of a good package client input check
    2022-03-17 23:50:05下载
    积分:1
  • it is about java profiling concepts presentation
    it is about java profiling concepts presentation
    2022-02-15 20:18:43下载
    积分:1
  • jsp response对象的使用例子,简单易用
    jsp response对象的使用例子,简单易用-jsp response examples of the use of objects, simplicity
    2022-03-23 16:09:45下载
    积分:1
  • java购物车项目源码,比较简单,是初级的
    java购物车项目源码,比较简单,是初级的-java shopping cart project source code, is relatively simple, the junior levels
    2023-03-06 16:20:03下载
    积分:1
  • 696516资源总数
  • 106562会员总数
  • 4今日下载