I've declared a variable as:
LinkedHashMap<Integer, String>[] function_labels;
but when I try and instantiate it with:
function_labels = new LinkedHashMap<Integer, String>[2];
I get a 'generic array creation' error.
I've searched on here, and although there are many posts about this error message, no-one seems to have offered a solution which actually works, so I'm trying again...
I don't mind what type of collection function_labels
is, as long as it works and I can access indexed members of it later. A simple array seems the 'lightest' solution, but there may be others which will work.
Thanks