Question: Write a method to test whether four numbers are all the same. For example, .3,3, 3, and 3 are all the same . 3,3,4: 3

Write a method to test whether four numbers are all the same. For example, .3,3, 3, and 3 are all the same . 3,3,4: 3 are not all the same 3,4, 5, are not all the same Complete the following file. Numbers.java 2 A class to compare numbers 4 public class Numbers 5 6 7Checks whether four numbers are all the same @return true if all of the numbers a, b, c, d are equal to another 18 public boolean al1TheSame (int a, int b, int c, int d) // your work here 12 13 14
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
