I am getting a compile error. "warning: [unchecked] unchecked conversion"
ArrayList[] regionTroops = new ArrayList[2];
required: ArrayList[] found: ArrayList[]
public class ContClass {
String name;
ArrayList<Integer>[] regionOwned = new ArrayList[2];
}
The code works, but I would like to eliminate the warning. I set the value as follows.
ContData[n].regionOwned[0].add(rn);