Question: Use the code below to get your main method started: public static void main ( String [ ] args ) { Scanner in = new

Use the code below to get your main method started:
public static void main(String [] args){
Scanner in = new Scanner(
System.in);
Random rand = new Random();
int w1, w2, w3; //3 winning digits generated randomly
int u1, u2, u3; //3 digits entered by user
int prize;
//generate random winning numbers (w1, w2, & w3) using rand object
//collect user's 3 digits from keyboard using Scanner
//call getPrize method and print the result.
Use the code below to get your main method

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!