Complete the following program so it performs the following actions 10 times: Generates a random number

Question:

Complete the following program so it performs the following actions 10 times:

• Generates a random number that is either 0 or 1.

• Displays either the word “Yes” or the word “No” depending on the random ­number that was generated.

// Write the necessary import statement(s) here.
public class ReviewQuestion16
{
 public static void main(String[] args)
 {
 // Write the necessary code here.
 }

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: