Java Int Array Find Javascript Array Contains Item Physics