Hi evrybody,
i have this code that allow to retrieve the “id” and “name” of user, but the results are stored in java.util.HashMap variable , i just want to store the results into java.lang.long variable instead of java.utilHashMap.
the code is:
HashMap<String,String> hm= new HashMap<String,String>();
resultset.beforeFirst();
while (resultset.next()) {
String nom = resultset.getString(‘userName’);
String id = resultset.getString(‘id’);
hm.put(id,name);
}
return hm;
Regards