文件名称:Guessnumber
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2013-11-27
- 文件大小:
- 24kb
- 下载次数:
- 0次
- 提 供 者:
- 段**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
编写一个猜数程序,该程序随机在1到1000的范围中选择一个供用户猜测的整数。界面上提供一个文本框来接收用户输入的猜测的数,如果用户猜得太大,则背景变为红色,如果猜得太小,背景变为蓝色。用户猜对后,文本框变为不可编辑,同时提示用户猜对了。界面上提供一个按钮,使用户可以重新开始这个游戏。在界面上还需显示用户猜测的次数。-Write a guessing program that randomly selects an integer for the user to guess at the range of 1 to 1000 in. Provides a text box on the screen to receive user input to guess the number, if the user guessed too large, the background turns red if the guess is too small, the background becomes blue. After the user guessed, the text box is not editable, and prompts the user to guess. The interface provides a button allows the user to start the game again. On the user interface needs to display the number of guesses.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Guessnumber.jar
Guessnumber.java
MyFrame$1.class
MyFrame$2.class
MyFrame$3.class
MyFrame.class
Guessnumber.class