to add multiple values to lists in Java