Thank you very much, now I understand it better, I did this:
Meses [] array = new Meses[2];
for(int i=0;i<array.length;i++)
array[i]= new Meses();
I still had problems, but the problem...
Type: Posts; User: Rexshine
Thank you very much, now I understand it better, I did this:
Meses [] array = new Meses[2];
for(int i=0;i<array.length;i++)
array[i]= new Meses();
I still had problems, but the problem...
Sorry for my noob question, but, are you telling me that I need to instance 12 objects and full my array with these 12 objects? like this:
Months m = new Months();
Months[] array = new...
Exception in thread "main" java.lang.NullPointerException
at Ejercicio03.main(Ejercicio03.java:26)
The name of the class is really Ejercicio03 and there is more lines but I simplified because...
Hi, I'm triying to fill an array of class "Months"
All I'm triying to fill is something like this: "array[position].atribute"
Every Month must have name and days; :-s
I get...