ArrayList working with int