Hashmap question!
Hello,
please help me in the following issue.
I have created a custom type:
publicinterface UserType{
public UserTypeImpl getUserType(String Number);
}
and:
import java.io.Serializable;
publicclass UserTypeImplimplements Serializable{
private String Number;
private String name;
private String email;
public UserTypeImpl(){}
public UserTypeImpl(String Number, String name, String email){
this.Number = Number;
this.name = name;
this.email = email;
}
and the getters and setter for Number, name and email.
Now, I fill this up with data, and put it into a hashmap:
HM.put(1, uT);//where uT is my type
The problem is, that how can I get the email, name and email from this hashmap?
I always get result like UserTypeImpl@130c19b
thanks in advance,
nagybaly

