Typescript Create New Array In Java