java - Printing out specific name for a given random number; keeping a running total on the random numbers give -
my program needs print out 3 5 random numbers 10 times. skydiving problem in numbers 1-22 equal 1 point while 23-38 equal 2 points. have created program has 10 different rounds 5 random numbers in each round, can't seem print out formation related specific number i.e. if 1 number equal 1 print out "snowflake". i have tried using if statements way print out each of formations keep getting error saying int can't become boolean. package skydiving; import java.security.securerandom; public class skydiving{ public static void main(string[] args){ int = 1; securerandom randomnumbers = new securerandom(); while (i<=10){ system.out.printf("round %d",i++); system.out.println(""); int totalpoints = 0; (int counter = 1 ; counter <= 5; counter++) { int dive = 1 + randomnumbers.nextint(38); if(dive == 1) system.out.println("1: snowflake"); else if(dive == 2) system.out.println("2: sideb...