How To Set And Get Using Model In Hashmap?
Model private HashMap data; public Mode() { this.data = new HashMap(); } public Object get(Mode value) { r
Solution 1:
Try this
public Object get(String key) {
return this.data.get(key);
}
public void set(String key, Object value) {
this.data.put(key, value);
}
Post a Comment for "How To Set And Get Using Model In Hashmap?"