Javascript Set Array To Another Arraylist Syntax In Java