# Search:

Type: Posts; User: tomtensfarfar

1. ## Thread: Integer to String, can't get it to work

by tomtensfarfar
Replies
8
Views
149

Okay, sorry.
2. ## Thread: Integer to String, can't get it to work

by tomtensfarfar
Replies
8
Views
149

### Re: Integer to String, can't get it to work

Thanks a lot for the reply. It's just that I have a deadline so I wanted to increase the chances of me getting an answer. I really appreciate it!
3. ## Thread: Integer to String, can't get it to work

by tomtensfarfar
Replies
8
Views
149

### Re: Integer to String, can't get it to work

Ok. I will implement this in a djikstra algorithm. I have a "from", "current" and "to" that consists of a string of 4 numbers. Then I will check, each timestep, what my current node is, whether or...
4. ## Thread: Integer to String, can't get it to work

by tomtensfarfar
Replies
8
Views
149

### Re: Integer to String, can't get it to work

Yeah, I'm aware of that. I only changed it to see if I could find the error. The thing is that I want the output to act like a string, so I can use it in another class. Why can't I do it like that?
5. ## Thread: Integer to String, can't get it to work

by tomtensfarfar
Replies
8
Views
149

### Integer to String, can't get it to work

Hi.
I try to get the following code to run:

for (int i = 0; i < 1; i++) {
str = Integer.toString(i);
if (i < 10) {
str = "0" + str;
}
6. ## Thread: ArrayList problem, probably very simple.

by tomtensfarfar
Replies
9
Views
158

### 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>

7. ## Thread: ArrayList problem, probably very simple.

by tomtensfarfar
Replies
9
Views
158

### 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...
8. ## Thread: ArrayList problem, probably very simple.

by tomtensfarfar
Replies
9
Views
158

### 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.
9. ## Thread: ArrayList problem, probably very simple.

by tomtensfarfar
Replies
9
Views
158

### 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,...
10. ## Thread: ArrayList problem, probably very simple.

by tomtensfarfar
Replies
9
Views
158

### 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 10 of 10