Hey, I just started programming about a month ago . I have an assignment and i dont know how to fix it this is what ive got so far . its a random number generator that says something if you hit the jackpot . i just need to get the main parts working then i will improve on it . this is what ive got so far
import java.util.*;
class Question1{
public static void main(String[] args){
int x = 777;
Scanner in = new Scanner(System.in);
System.out.print("Enter Number");
x = in.nextInt();
Random diceRoller = new Random();
for (int i = 0; i < 10; i++) {
int roll = diceRoller.nextInt(6) + 1;
System.out.println(roll);
}
if (x==777 ) {
System.out.println("Congradulations You Just Won 100 Tokens");
}
}
}