Question: Revise Listing 3.8, Lottery.java, to generate a lottery of a two-digit number. The two digits in the number are distinct. (Hint: Generate the first digit.
Revise Listing 3.8, Lottery.java, to generate a lottery of a two-digit number. The two digits in the number are distinct. (Hint: Generate the first digit. Use a loop to continuously generate the second digit until it is different from the first digit.)
Step by Step Solution
3.42 Rating (155 Votes )
There are 3 Steps involved in it
public class Exercise0532 public static void mainString args Generate the first digi... View full answer
Get step-by-step solutions from verified subject matter experts
