All pastes #559885 Raw Edit

help please

public text v1 · immutable
·published 2007-06-11 22:57 UTC
rendered paste body
private void look() 
    {
        items myItems = new items();
        if (currentRoom == crashSite) {
            System.out.println(myItems.crashSiteItems);}
    }

thats in one class
________________________________________________________________


public class items
{
    public ArrayList<String> crashSiteItems;
    
    public void itemsAvailable()
    {
    String[] crashSiteItemArray = {"mobile","shrapnel"};
    crashSiteItems = new ArrayList<String>(Arrays.asList(crashSiteItemArray));
    }
}


thats in my other class