Exemplo Java Treemap Remover ()

import java.util.*;  
class Tree_Map_Remove {  
   public static void main(String args[]) {  
    TreeMap<Integer,String> map=new TreeMap<Integer,String>();    
      map.put(93,"Afghanistan");    
      map.put(213,"Algeria");    
      map.put(55,"Brazil");       
    
      System.out.println("Before remove() method");  
      for(Map.Entry mapTree:map.entrySet())  
      {  
          System.out.println(mapTree.getKey()+" "+mapTree.getValue());      
      }  
      map.remove(213);      
      System.out.println("After remove() method");  
      for(Map.Entry mapTree:map.entrySet())  
      {  
          System.out.println(mapTree.getKey()+" "+mapTree.getValue());      
      }  
      }  
}
Outrageous Ostrich