Java Array With Set Size In Javascript The Xy