private String informations(String name, String infos){
        
        String temp = "";
       

        for (int i = 1; i < listContacts.size(); i++) {
            if ((listContacts.get(i).getNom()).equals(name)) {
                if(infos.equals("adresse"))
                     temp = listContacts.get(i).getAdresse();
                else if(infos.equals("sexe"))
                     temp = listContacts.get(i).getSexe();
                 else if(infos.equals("all"))
                     temp = listContacts.get(i).toString();
                 else if(infos.equals("surnom"))
                     temp = listContacts.get(i).getSurnom();
                 else if(infos.equals("telephone"))
                     temp = listContacts.get(i).getTelephone().toString();
                 else if(infos.equals("mail"))
                     temp = listContacts.get(i).getMails().toString();
                 else if(infos.equals("naissance"))
                     temp = listContacts.get(i).getNaissance();
                 
            }
        }
        
        return temp;
    }