How To Get Array Elements From User Dynamically Using For Loop In Java