updated Arrays.java