mercredi 20 août 2014

Java collection with Incompatible types error


Vote count:

0




So I have this function, and it's not compiling. What is the problem?


The compiling error is Line 4: error: incompatible types



public List<List<Integer>> myfunc(int[] num) {

List<List<Integer>> r = new ArrayList<ArrayList<Integer>>(); //line 4
return r;
}


Thanks!!



asked 24 secs ago







Java collection with Incompatible types error

Aucun commentaire:

Enregistrer un commentaire