Java Input Array Program In Javascript How Many Different