Typescript Convert Array To String Java