結果 : how to take user input in arraylist in java using for loop