文件名称:test4
介绍说明--下载内容均来自于网络,请自行研究使用
(2) 猜数游戏。编写一个猜数程序,该程序随机在1到1000的范围中选择一个供用户猜测的整数。界面上提供一个文本框来接收用户输入的猜测的数,如果用户猜得太大,则背景变为红色,如果猜得太小,背景变为蓝色。用户猜对后,文本框变为不可编辑,同时提示用户猜对了。界面上提供一个按钮,使用户可以重新开始这个游戏。在界面上还需显示用户猜测的次数-(2) guessing game. Guess the number of writing a program, the program randomly choose an integer for the user to guess in the range of 1-1000. The interface provides a text box to receive user input guess the number, if you guess too, the background turns red if the guess is too small, the background turns blue. The users guessed, becomes non-editable text box, while the user is prompted to guess it right. The interface provides a button, the user can re-start this game. Show the user the number of guesses needed interface
(系统自动生成,下载前可以参看下载内容)
下载文件列表
test4.java