Main.java:16: error: no suitable method found for toArray(int[])
list.toArray(resultado);
^
method Collection.<T#1>toArray(T#1[]) is not applicable
(inference variable T#1 has incompatible bounds
equality constraints: int
upper bounds: Object)
method List.<T#2>toArray(T#2[]) is not applicable
(inference variable T#2 has incompatible bounds
equality constraints: int
upper bounds: Object)
where T#1,T#2 are type-variables:
T#1 extends Object declared in method <T#1>toArray(T#1[])
T#2 extends Object declared in method <T#2>toArray(T#2[])
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error