Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.HashMap;
- public class Teste {
- public static void main(String[] args){
- HashMap<String, Pessoa> e = new HashMap<String, Pessoa>();
- e.put("cpf : 54654464687", new Pessoa("Levi Ribeiro Silva"));
- e.put("cpf : 56879487",new Pessoa("Joaquim valmir Silva"));
- e.put("cpf : 541984654674", new Pessoa("Meque DonaldIS Pinto"));
- System.out.println(e);
- System.out.println(e.isEmpty());
- System.out.println(e.size());
- System.out.println(e.remove("cpf : ruye656879487"));
- System.out.println(e);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement