Code example for TreeSet

Methods: clear

0
        } 
    } 
 
    public synchronized void clear() 
    { 
        list.clear();
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java