Array problems in Java.