diff list and set in java code example
Example: List vs Set
List > Ordered and Indexed Collection, May contain duplicates
Set > Collection of Unique values, not ordered, no indexing
List > Ordered and Indexed Collection, May contain duplicates
Set > Collection of Unique values, not ordered, no indexing