Guessing Game
2016-08-23
0 0 0
no vote
Other
Earn points
import java.util.Random;
import java.util.Scanner;
public class RandomGen {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
Random rand = new Random();
int guess = 0;
int randomNumber = rand.nextInt((31)+1);
int TotalCount=0;
int SmallerGuesses=0;
int LargerGuesses=0;
int star=0;
int stars=0;
System.out.print("Guess the number I'm thinking of, from 1-32:");
while(guess != randomNumber){
guess = input.nextInt();
&nb
import java.util.Scanner;
public class RandomGen {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
Random rand = new Random();
int guess = 0;
int randomNumber = rand.nextInt((31)+1);
int TotalCount=0;
int SmallerGuesses=0;
int LargerGuesses=0;
int star=0;
int stars=0;
System.out.print("Guess the number I'm thinking of, from 1-32:");
while(guess != randomNumber){
guess = input.nextInt();
&nb
java
游戏
Related Source Codes
Android AOA Android Open Accessory Development Usi
0
0
no vote
VPN source code accelerator
0
0
no vote
VPN source code
0
0
no vote
Springboot Campus Recruitment System
0
0
no vote
Java intelligent QR code access control management
0
0
no vote
No comment