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"); }
im trying to download a program to mess around with but everytime i download it chrome stops the download because it has malicious software or norton anti-virus automatically deletes it . Any ideas on how i can download and get my firewall to ignore it ?
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"); }
yea dude it worked , thanks ive tried everything . i did the windows thing and then i disabled my firewall and now everything is working like a charm :)
im trying to download a program to mess around with but everytime i download it chrome stops the download because it has malicious software or norton anti-virus automatically deletes it . Any ideas on how i can download and get my firewall to ignore it ?