updated code in ArraysTest.java