Accessing Array List from another class
<p>Hey how do I access an arraylist from another class? as in call an objects method inside of the arraylist but from the MasterControlPanel class?. Any help is greatly appreciated. Because the get(0) does not seem to be working.</p>

<pre><code>//example

public class MasterControlPanel{
    public static Building building = new Building();

    public static void main(String[] args) {
        building.rooms.get(0).*whatever*
    }
}

public class Building
{
    public static Rooms rooms[] = new Rooms[4];
    private float outsideTemp;
    ArrayList rooms = new ArrayList();

    rooms.add(*new instance*); 
    rooms.add(*new instance*); 

    public Building() {
    }
</code></pre>

<p>}</p>
