Professional Documents
Culture Documents
Random;
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Random rand = new Random();
System.out.print ("This application will close if you will be able to guess
the " + "\n" +
"correct number from (4-7), this computer generates");
System.out.print ("\n" +
"-------------------------------------------------------------------");
int gen=0;
int input=0;
int num=10;
while (gen<=2) {
gen = rand.nextInt(num);
} Scanner scan =new Scanner (System.in);