Typescript Sum All Numbers In Array Literal In Java