“int ne peut pas être déréférencés” en Java

Je suis assez nouveau à Java et je suis en utilisant BlueJ. Je reçois ce "de type Int ne peut pas être déréférencés" erreur lorsque vous essayez de compiler et je ne suis pas sûr que le problème est. L'erreur est précisément passe dans mon instruction si au fond, où il est dit "égal à égal" est une erreur et "int ne peut pas être déréférencés." L'espoir d'obtenir de l'aide car je n'ai aucune idée de quoi faire. Je vous remercie à l'avance!

public class Catalog {
    private Item[] list;
    private int size;

    //Construct an empty catalog with the specified capacity.
    public Catalog(int max) {
        list = new Item[max];
        size = 0;
    }

    //Insert a new item into the catalog.
    //Throw a CatalogFull exception if the catalog is full.
    public void insert(Item obj) throws CatalogFull {
        if (list.length == size) {
            throw new CatalogFull();
        }
        list[size] = obj;
        ++size;
    }

    //Search the catalog for the item whose item number
    //is the parameter id.  Return the matching object 
    //if the search succeeds.  Throw an ItemNotFound
    //exception if the search fails.
    public Item find(int id) throws ItemNotFound {
        for (int pos = 0; pos < size; ++pos){
            if (id.equals(list[pos].getItemNumber())){ //Getting error on "equals"
                return list[pos];
            }
            else {
                throw new ItemNotFound();
            }
        }
    }
}
Vous essayez à l'aide d'un int où un Integer, Number ou Object est prévu...int n'a pas de méthodes

OriginalL'auteur BBladem83 | 2013-10-01