Hello,
This is my code
I get an error "null pointer", the error lies in assigning values to my myObject.x, I think a pb of initialization, I'm lost in the objects included in other objects. Any help regarding this will be appreciated. Thanks in advance.Code:c1 { int h, double b} c2 { int lb double[] y, c1[][] x} class3{ myObject = new c2(); myObject.lb = Nb_int; myObject.y = new double[nb_int]; myObject.x = new c1[nb_int][nb_int]; }
Bookmarks