All pastes #42374 Raw Edit

Untitled

public text v1 · immutable
#42374 ·published 2006-02-20 22:29 UTC
rendered paste body
public String getLongDescription()
    {
        // pointless i value for counter
        int i = 0;
        // pointless initialisation of the string y
        String y = "";
        // loop through the items list of the current room and output any item found
        for (i=0; i < itemList.size();i++)
        {
            Item x = (Item)itemList.get(i);
            y = x.getItem();
            
        }
        //return the rooms contents
        return description + "\n" + getExitString() + y;
    }