java intro assignment on the collection with comments