Simple Array Java Code