package edu.mines.alterego;

class InventoryItem {
    int mItemId;
    String mName;
    String mDescription;

    InventoryItem(int item_id, String name, String description) {
        mItemId = item_id;
        mName = name;
        mDescription = description;
    }

    public int getItemId() { return mItemId; }
    public String getName() { return mName; }
    public String getDescription() { return mDescription; }
}

@@ -415,11 +415,298 @@
 ption; %7D
+%0A%0A    public static int showableDescLength = 25;%0A    public String toString() %7B%0A        int cutIndex = showableDescLength;%0A        if (mDescription.length() %3C= cutIndex)%0A            cutIndex = mDescription.length();%0A        return mName + %22: %22 + mDescription.substring(0,cutIndex);%0A    %7D
 %0A%7D%0A

Add a toString function to InventoryItem so it can be properly shown in a ListView