Question: Question 16 (2 points) Consider the following method. public void doItNow) System.out.println(Oh, no, my young Jedi.); Each of the following statements appears in a method

Question 16 (2 points) Consider the following method. public void doItNow) System.out.println("Oh, no, my young Jedi."); Each of the following statements appears in a method in the same class as do ItNow. Which of the following statements are valid uses of the method do ItNow? I. do It Now(); II. String output = doItNow(); III. System.out.println(do ItNow ()); I only Il only I and II only I and III only OI, II, and III Question 6 (2 points) Which of the following statements assigns a random integer between 1 and 6, inclusive, to diceRoll? O int diceRoll = (int) (Math.random() * 6); Oint diceroll (int) (Math.random() + 1) * 6; Oint diceroll - (int) (Math.random() * 6) + 1; O int diceroll = (int) (Math.random()) + 6 + 1; Oint diceroll = (int) (Math.random()) * 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
