Question: I need to know whats going wrong here. Please help. Type two statements using nextint0 to print two random integers between (and including) 0 and
I need to know whats going wrong here. Please help.

Type two statements using nextint0 to print two random integers between (and including) 0 and 9. End with a newline. Ex: 7 Note: For this activity, using one statement may yield different output (due to the compiler calling rand0 in a different order). Use two statements for this activity. (Notes) 1 import java.util.Scanner; 2 import java.util.Random; 4 public class DiceRoll 5 public static void main (String [] args) Random randGennew Random); int seedVal; 18 randGen.setSeed (seedVal); 12 System.out.print("First random number: ") 13 14 15 16 17 18 19 28 return; 21 System.out.println(randGen.nextInt(9)+1); System.out.print( "Second random number: "); System.out.print (randGen.nextInt (9)+1); Run Failed to compile main.java: 397: error: unreachable statement randGen.setSeed (seedVal) main.java: 418: error: unreachable statement randGen.setSeed (seedVal) 2 errors
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
