Which of the following lines of code would properly test the equality of two arrays. For example:
Object[] expectedArray = {"H","I","J","K"}; Object[] actualArray = {"A","B","C","D"};
if (actualArray.length == expectedArray.length) { for (int i =0; i < expectedArray.length; i++) { assertEquals(expectedArray[i],actualArray[i]); } }
for (int i =0; i < expectedArray.length; i++) { assertEquals(expectedArray[i],actualArray[i]); }
for (int i =0; i < actualArray.length; i++) { assertEquals(expectedArray[i],actualArray[i]); }
There are no hints for this question