chapter_002/src/main/java/ru/job4j/tracker/Tracker.java
/**
     * Find item in storage
     * @param id number of item
     * @return item
     */
Find item in storage
@param id number of item
@return item
Find item in storage @param id number of item @return item
public Item findById(String id) {
        Item result = null;
        for (int index = 0; index < position; index++) {
            if (items[index] != null && items[index].getId().equals(id)) {
                result = items[index];
            }
        }
        return result;
    }
public Item findById ( String id ) { Item result = null ; for ( int index = 0 ; index < position ; index ++ ) { if ( items [ index ] != null && items [ index ] . getId ( ) . equals ( id ) ) { result = items [ index ] ; } } return result ; }
Find item in storage
 @param id number of item
 @return item
Find item in storage @param id number of item @return item
//        for (Item item : items) { //            if (item != null && item.getId().equals(id)) { //                result = item; //                break; //            } //        }