Java Integer Array Methods Javascript Pop