Code example for TreeSet

Methods: remove

0
    	return freePositions.pollFirst();
    } 
     
    public void removeStockPosition(int object)
    { 
    	freePositions.remove(object);
    } 
     
    @Override 
	public ArrayList<String> entityToString() {
		ArrayList<String> info = new ArrayList<String>();
		info.add("I am stock.");    	
    	return info;
     
	} 
     
}