Search:

Type: Posts; User: Rexshine

Search: Search took 0.24 seconds.

  1. Replies
    6
    Views
    1,333

    Re: Array of a Class

    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...
  2. Replies
    6
    Views
    1,333

    Re: Array of a Class

    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...
  3. Replies
    6
    Views
    1,333

    Re: Array of a Class

    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...
  4. Replies
    6
    Views
    1,333

    Array of a Class

    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...
Results 1 to 4 of 4