java arrays not scala arrays