资源列表
ObjectMotion
- 采用Java多线程技术,模拟自由落体和平抛运动:一个球自由落下,一个球水平抛出。-Java multi-threading technology used to simulate free-fall throwing the peace movement: a ball free-fall, the level of a ball thrown.
Client_Server
- 编写客户/服务器程序,客户端Client.java使用DatagramSocket对象将数据包发送到服务器,请求获取服务器端的图像(考生可自选图像文件)。服务器端Server.java将图像文件包装成数据包,并使用DatagramSocket对象将该数据包发送到客户端。首先将服务器端的程序编译通过,并运行起来,等待客户的请求。-The preparation of client/server program, client Client.java use DatagramSocket objec
CountDigit
- 编写一个Java应用程序,对用户输入的任意一组字符如{1,3,4,7,2,1,1,5,2},输出其中出现次数最多且数值最大的字符,并显示其出现次数-Write a Java application, the user input any set of characters such as (1,3,4,7,2,1,1,5,2), the output values which occur most often and most of the characters, and displays in
ObjectMotion2
- 编写一个Java GUI应用程序,采用Java多线程技术,有两个线程,模拟垂直上抛运动和水平抛体运动:一个球垂直上抛,一个球水平抛出-Write a Java GUI application, using Java multi-threading technology, there are two threads to simulate the vertical and horizontal movement on the throw throwing body movement: a ball
DateCompare
- 编写一个Java应用程序,当用户在输入对话框中输入两个日期后(日期格式为YYYYMMDD,如1999年1月12日应输入为19990112),程序将判断两个日期的先后顺序,以及两个日期之间的间隔天数(例如1999年1月1日和1999年1月2日之间的间隔是1天)-Write a Java application, when a user in the input dialog box, enter the two after the date (the date format YYYYMMDD, s
ReverseFileByLine
- 编写一个Java应用程序,开启一个文本文件(以本程序源文件为例读取),一次读取其内的一行文本,令每行形成一个String,并将读出的String对象置于LinkedList中,以相反次序显示出LinkedList内的所有内容-Write a Java application, open a text file (in this program read the source file for example), one reads a line inside the text, so that
Folder
- 编写一个Java应用程序,文件名为Folder.java,实现指定文件夹下目录和文件的文本形式的树状结构显示。要求: 1. 输入: java Folder,显示当前文件夹下的目录和文件的文本形式树状显示; 2. 输入: java Folder C:\test>,显示C:\test文件夹下的目录和文件的文本形式树状显示;(C:\test可以为任意文件夹路径名)3. 输入: java Folder add aa,在当前文件夹下面添加一个子目录(子目录名为:aa),同时显示当前文件夹下的
RandomFileAfterTwelve
- 编写一个Java应用程序,利用RandomAccessFile类往某个文本文件中写入20个整数(0~19),然后从该文件的第12个字节开始,将后面所有的数据(对应写入的整数)读出。-Write a Java application, use RandomAccessFile class to write to a text file 20 integer (0 ~ 19), and then from the first 12 bytes of the file will begin after
GridLayoutTransform
- 编写一个Java GUI应用程序,窗口标题为“GridLayout”,窗口布局如下图A所示,在图A窗口中单击任意一个Button,网格的划分方式会变化为图B;在图B窗口中单击任意一个Button,网格的划分方式会变化为图A-Write a Java GUI application, the window titled " GridLayout" , the window layout as shown in Figure A, in Figure A window, click
DrawOutAward
- 某企业为了促销,搞抽奖宣传活动,奖品为新款手机一部,抽奖规则如下: (1)有n个盒子摆成一圈,盒子按顺时针方向依次编号为0,1,2,……,n-1。手机随机放在其中一个盒子中。(n为自然数) (2)从0号盒子开始摸奖,顺时针方向计数,每遇到第m个盒子就摸奖一次。(m为自然数,m<n) (3)直到重新摸到0号盒子为止。 -A company for promotional purposes, engage in lottery promotional activit
chat
- 基于udp协议的Java聊天程序当启动多个时,发送端口,接收端口 与其他都不相同(在本机上测试时),手动改。昵称自己起一个。服务器IP为server.jar所在电脑的IP地址。 填写完毕后,点击登录,然后在服务端可以看到相应的登录信息。开启多个客户端后就可以 同时进行多人聊天了。支持本机测试。-Udp protocol Java-based chat program when you start multiple time, send port, receive port and t
TextEditor
- 非控件文本编辑器。1.文本编辑器已经有很多人制作过,但其中很多都是用到控件,难度不是很大.而不用控件来编写的文本编辑器相对来说就是比较少.难度大。 2.我们平时都喜欢使用一些系统给我们提供的控件.而没有去想过那些控件是怎么样运行起来的.里面涉及到多少方面的内容,它具体的实现过程. -The non-control text editor. 1. Text editor has produced a lot of people before, but many of which are
