Java Create New Object Array In Typescript W3schools