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 ReviewQuestion{ public static void main(String[] args) { // Write the necessary code here. }}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.