Write a method to test whether four numbers are all the same. For example,