Question: Equality/Counting Write a Java program named Equality Couting that prompts the user to enter four integer arguments and displays the message true if and only

Equality/Counting Write a Java program named Equality Couting that prompts the user to enter four integer arguments and displays the message true if and only if at least three of the four values are the same. For example, if the values passed in are 5, 3, 5, 5, it would return true. If the values passed in are 7, 3, 7, 9, it would return false. Sample Input/Output User input: 5 3 5 5 Program output: true User input: 7 379 Program output: false
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
