I'm really confused. My code:
public void testList(){
int cnt = 3;
LinkedList<LvRow>[] vListItems = new LinkedList[cnt]; //eclipse suggest warnning
for (int i = 0; i < cnt; i++) {
vListItems[i] = new LinkedList<LvRow>();
}
}
eclipse suggest a warning:
Type safety: The expression of type LinkedList[] needs unchecked conversion to conform to LinkedList<LvRow>[]
It seems a cast problem. I have tried many times, but I don't know how to cast. Anyone can help me?
By the way, if following codes is same, or have any diffence?
LinkedList<LvRow>[] vListItems = new LinkedList[cnt];
LinkedList<LvRow> vListItems[] = new LinkedList[cnt];
byte[]).