I am trying to implement an array of LinkedHashMap but I don't know if it's possible...
For the moment my code looks like as follows :
public class LHMap {
public static void main(String[] args) {
LinkedHashMap<String, Integer>[] map = null;
for (int i = 0; i < 5; i++) {
map[i] = new LinkedHashMap<String, Integer>();
}
map[0].put("a", 0);
System.out.println(map[0].get("a"));
}
}
System.out.println(extracted(map)[0].get("a"));
returns a "NullPointerException"...
Have you got any idea how to implement this?
EDIT : 1. erase extracted(), 2. table->array