HashSet
Syntax
Set <Data type> setName = new HashSet<>();
Properties
1. There is no proper arrangement of values in this HashSet.
2. The duplicate values will be ignored/removed itself.
TreeSet
Syntax
Set <Data type> setName = new TreeSet<>();
Properties
1. The values will be arranged itself in ascending order.
Some Methods
0 Comments