package start;

import moduls.Item;

/**
 * Created by ${Ruslan} on 19.09.16.
 */
public class Tracker {
    private Item[] item = new Item[20];
    private int position = 0;

    public Item addClient(Item item){
        this.item[position++] = item;
        return item;
    }
}

@@ -121,16 +121,17 @@
 m%5B%5D item
+s
  = new I
@@ -139,16 +139,16 @@
 em%5B20%5D;%0A
-
     priv
@@ -225,16 +225,17 @@
 his.item
+s
 %5Bpositio
@@ -273,11 +273,297 @@
 m;%0A    %7D
+%0A%0A    public Item findById(String clientId)%7B%0A        Item res = null;%0A        for (Item item:%0A             items) %7B%0A            if (item != null && item.getClientId().equals(clientId))%7B%0A                res = item;%0A                break;%0A            %7D%0A        %7D%0A        return res;%0A    %7D
 %0A%7D%0A

add && findId