Java J2ME game for guess number source code

源代码在线查看: guessnumber.java

软件大小: 14 K
上传用户: tiger452
关键词: number source guess Java
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				package GuessNoMIDlet;
				
				import javax.microedition.midlet.*;
				import javax.microedition.lcdui.*;
				import java.util.*;	//Random
				
				public class GuessNumber extends MIDlet implements CommandListener
				{
					private Display display;
					private Form startForm, playForm, failForm, successForm;
					private Command exitCmd, startCmd, okCmd;
					private ChoiceGroup choice;
					private TextField textField;
					private String str = "";
					private int round = 0;
					private int ans[] = new int[4];
					private int result[] = new int [2];	//0: 'A'; 1: 'B';
					private int watch = 0;
				
					public GuessNumber()
					{
						startForm = new Form("匡虫");
						playForm = new Form("瞦计			

相关资源