For some reason this is only returning the description of a single item in the HashSet even when there are several items. I am not sure if the (Item) is only getting the description of the first item in the list and that is why.

    public String getMyItemsDescription()
        String returnString = "The items in your inventory are:";
        for(Iterator iter = myItems.iterator(); iter.hasNext();){
            returnString = " " + ((Item);
        return returnString;

returnString = " " + ((Item);
discards any orevious data in returnString.
How about
returnString = returnString + " " + ((Item);
top keep the existing values

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.