complete the java's array translation