Something like that:

Code: Java
public class Inventory {
    private long partNo;
    private long description;
    private long quantity;

    public Inventory() {
    }

    public Inventory(long partNo, long description, long quantity) {
        this.partNo = partNo;
        this.description = description;
        this.quantity = quantity;
    }

    public long getPartNo() {
        return partNo;
    }

    public void setPartNo(long partNo) {
        this.partNo = partNo;
    }

    public long getDescription() {
        return description;
    }

    public void setDescription(long description) {
        this.description = description;
    }

    public long getQuantity() {
        return quantity;
    }

    public void setQuantity(long quantity) {
        this.quantity = quantity;
    }
}

Now you can create new object and att it to your array:

Code: Java
Inventory[] inventories = new Inventory[10];
        inventories[0] = new Inventory(123, "Shampoo", 24);

BTW it will be better to use lists instead of arrays. For example, ArrayList.

PS. Also you need to find some Java book :-). It will be helpful.

Last edited by SaswatPadhi; 8Nov2009 at 17:49.. Reason: Changed PHP tags to CODE tags