1 package equals; 2 3 import java.io.Serializable; 4 5 public class ArrayEquality { 6 7 boolean reportProblemsWithArrayEquality(String[] a, String b) { 8 return a.equals(b); 9 } 10 11 boolean reportProblemsWithArrayEquality2(String[] a, String b) { 12 return b.equals(a); 13 } 14 boolean reportProblemsWithArrayEquality3(String[] a, String []b) { 15 return a.equals(b); 16 } 17 boolean reportProblemsWithArrayEquality4(String[][] a, String []b) { 18 return a.equals(b); 19 } 20 boolean reportProblemsWithArrayEquality5(String[] a, String [][]b) { 21 return a.equals(b); 22 } 23 boolean reportProblemsWithArrayEquality6(String[] a, int []b) { 24 return a.equals(b); 25 } 26 boolean reportProblemsWithArrayEquality7(int[] a, String []b) { 27 return a.equals(b); 28 } 29 boolean reportProblemsWithArrayEquality8(StringBuffer[] a, String []b) { 30 return a.equals(b); 31 } 32 boolean reportProblemsWithArrayEqualityFalsePositive1(String[] a, Serializable b) { 33 return a.equals(b) || b.equals(a); 34 } 35 boolean reportProblemsWithArrayEqualityFalsePositive2(String[] a, Cloneable b) { 36 return a.equals(b) || b.equals(a); 37 } 38 39 }