este es mi codigo import java.util.ArrayList; import java.util.List;
public class Solution { public List<List<Object>> cartesianProduct(Object[] a, Object[] b) { // Escribe tu solución aquí
List<List<Object>> result = new ArrayList<>();
for(int i = 0; i < a.length; i++){
for(int j = 0; j < b.length; j++){
List<Object> object = new ArrayList<>();
object.add(a[i]);
object.add(b[j]);
result.add(object);
}
}
return result;
}
} y tengo el siguiente error: ✗ Error: method cartesianProduct in class Main cannot be applied to given types;
estuve investigando pero no encuentro si el error es mi codigo o los parametros que me mandan
2respuestas