Java notes on Collection interfaces