Array Map Javascript Object Length Property In Java