how to store multiple values in array in java