登录
首页 » Java » 2008010

2008010

于 2009-12-24 发布 文件大小:2KB
0 159
下载积分: 1 下载次数: 25

代码说明:

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

文件列表:

Myline.class
test.class
test.java

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

发表评论

0 个回复

  • shanzhaiqq
    模仿qq程序做的一个简单c/s应用系统,具有服务器程序,和客户端程序等模块,实现简单的聊天功能,程序不太完善,望有兴趣的加以完善,可以让初学java的人了解庞大程序的编程思想。编程工具netbean+mysql完成。(Imitate qq program to do a simple c/s application system with the server program, and client programs and other modules, to achieve a simple chat feature, the program is not perfect, hope to be improved are interested, you can let people know about the huge beginner java programming ideas program. Programming Tools netbean+ mysql complete.)
    2014-10-29 13:51:07下载
    积分:1
  • chinafuwen
    手机游戏JAVA源码大富翁中国之旅+最新版,需要的朋友赶紧下载吧(JAVA source Monopoly mobile game trip to China+ the latest version of the need to quickly download your friends)
    2009-05-24 20:39:06下载
    积分:1
  • SPOOLING
    要求设计一个SP00LING输出进程和两个请求输出的用户进程,以及一个SP00LING输出服务程序。当请求输出的用户进程希望输出一系列信息时,调用输出服务程序,由输出服务程序将该信息送入输出井。待遇到一个输出结束标志时,表示进程该次的输出文件输出结束。之后,申请一个输出请求块(用来记录请求输出的用户进程的名字、信息在输出井中的位置、要输出信息的长度等),等待SP00LING进程进行输出。 SP00LING输出进程工作时,根据请求块记录的各进程要输出的信息,将其实际输出到打印机或显示器。这里,SP00LING输出进程与请求输出的用户进程可并发运行。 (Asked to design a user process SP00LING request output and two output processes, and outputs a SP00LING service program. When users want to process requests output output range information, call the output service program, service program by the output information into the output shaft. Treatment to an output end of the flag, which means that the process of the second output file output end. Thereafter, the application of an output request block (name of the user to record the output of the process request, the information on the position of the output well, and length information to be outputted), the process waits SP00LING output. When SP00LING output process work, information requested under each process block records to be output, its actual output to a printer or monitor. Here, the user process and the output process SP00LING request output can be run concurrently.)
    2014-01-08 13:36:02下载
    积分: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
  • synchronism
    一个用于实现不同数据库数据同步的程序,用jbuider开发,在一个数据库数据修改后,通过触发器触发同步程序,同步程序通过socket与另一个数据库的同步程序通信,达到数据同步的目的(One for different database data synchronization process, using jbuider development, data modifications in a database after the synchronization process through the flip-flop trigger, synchronization procedure socket with another database synchronization process communication, to achieve the purpose of data synchronization)
    2007-10-16 10:28:23下载
    积分:1
  • remotecontrol
    说明:  实现一个简单远程监控软件,采用Windows Socket(或Java Socket)编程。采用C/S架构。(1)能够远程监控一台主机,显示主机屏幕内容,能远程关机(2)能远程下载或上传文件(3)能远程执行一些DOS命令(4)能远程运行一些可执行命令。 (Implement a simple remote control software, using Windows Socket (or Java Socket) programming. By C/S architecture. (1) to remotely monitor a host, the screen displays the contents of the host, can remotely shut down (2) can remotely download or upload files (3) can remotely perform some DOS commands (4) can remotely run some executable command.)
    2011-02-19 18:50:32下载
    积分:1
  • Java2CanKaoDaquan
    Java2参考大全第4版!! 初学者很好的参考教材(Java2 reference Solutions Release 4! ! Beginners good reference materials! !)
    2006-11-17 16:42:26下载
    积分:1
  • baokandingyueguanlixitong
    报刊订阅管理系统,代码和报告都在里面 完整的,需要的可以下载参考(baokandingyueguanlixitong wanzhengziliao )
    2020-12-18 18:09:11下载
    积分:1
  • linux_pda_design
    基于嵌入式Linux的智能手机省电设计。一篇不错的文章。(Embedded Linux based smartphone energy saving design. A good article.)
    2007-04-04 11:22:52下载
    积分:1
  • code-patselect
    一个宠物选择的小程序。用java实现。可供初学者学习。(a choice of small pets procedures. Using java to achieve. For beginners learning.)
    2007-04-23 23:59:04下载
    积分:1
  • 696516资源总数
  • 106936会员总数
  • 1今日下载