Need some help: I am not familiar with Hashmaps. How would I compare List and arrays with a hash map? The List & array holds Integers.
The Map:
Map<Integer, String> profMap = new HashMap<Integer, String>() {};
while(profs.next()){
Integer key= profs.getInt("profid");
String name= profs.getString("profname");
profMap.put(key,name);
}
/* profs comes from my sql statement and pulls values from those columns*/
Array:
String [] profArray = request.getParameterValues("professor");
List:
List list= new ArrayList();
I get lost in the documentation and all the other examples I have seen. Hoping someone can help me out on here
Listand aMapis? Basically aListworks like an array it simply holds a set of values in it. AMapholdskey valuepairs so each value has a key associated with it.profs? Know sscce.