Search:

Type: Posts; User: tomtensfarfar

Search: Search took 0.35 seconds.

  1. Re: ArrayList problem, probably very simple.

    Hi. Thanks for your time, but my mate found the error. I used the same ArrayList in all ArrayList<ArrayList>

    infectedpercell.add(nr);
    curedpercell.add(nr);
    healthypercell.add(nr);
  2. Re: ArrayList problem, probably very simple.

    Oh, that find. Yeah but it was only called to initiate to zeros. The output is an ArrayList<ArrayList<Integer>> that shows the number of occurances in each cell. Since there are 10.000 cells, I will...
  3. Re: ArrayList problem, probably very simple.

    That is where I initiliaze the ArrayList<ArrayList<Integer>> with zeros. I don't really understand what you mean by using Find, but I'll google it.
  4. Re: ArrayList problem, probably very simple.

    Hi, and thanks for the fast reply. I don't understand why they would end up the same, unless I've missed something. The reason is that I only add 5 variables to the ArrayList called infectedpercell,...
  5. ArrayList problem, probably very simple.

    Hi.
    I hope you can help me with debugging this piece of code, cause I'm going crazy. I've only implemented the code needed. 'public Model' is the constructor. I have highlighted where the problem...
Results 1 to 5 of 5