how is java treeset implemented code example Example: what is treeset in java - TreeSet sorts the order and don't accept null