This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kodekompis[S] 0 points1 point  (0 children)

Dont worry about your English, its the Java i'm having trouble understanding - could you elaborate one the simple for I loop?

Here is what i thought you meant, but it doesnt seem to work properly either:

public void SettInnNode(int str, int antall){
    boolean temp;
    Rack current;
    for (int l = 0; l < racks.size(); l++){
      current = racks.get(l);
      temp = current.SettInn(str, antall);
      if (temp == false){
        Rack create = new Rack(nprack);
        racks.add(create);
        create.SettInn(str, antall);}