Java Int Array Find Typescript W3schools