Java Integer Array Methods In React