arrayList.size has private access? wtf?

I have been messing with ArrayList for awhile and today well working on this zombie game I'm making for class I got an error that I have never seen before and do not understand why I get this here is the code:

import java.util.ArrayList;

publicclass Room

{

private String description;

public HashMap<String, Room> exits;

publicstatic Room currentRoom;

public ArrayList<Room> roomList =new ArrayList();

public Room(String description)

{

this.description = description;

exits =new HashMap<String, Room>();

roomList.add(this);

}

publicvoid placeRandomZombies()

{

int listSize = roomList.size;

}

And the error:

size has private access in java.util.ArrayList

Your help is much greatful

[1464 byte] By [sharokua] at [2007-11-27 4:49:43]
# 1
size is a method and not an attribute, so it should be size()Kaj
kajbja at 2007-7-12 10:02:51 > top of Java-index,Java Essentials,New To Java...
# 2
to add on even if the attributes have access its better to use accessor methods rather than the attributes directly.I have come across code where because of limitations in gigasapces and javaspaces, attributes are made public, but then again if accessor methods is tha way to go.
kilyasa at 2007-7-12 10:02:51 > top of Java-index,Java Essentials,New To Java...
# 3
Okay, so I just realize what an idiot I am... It was so obvious that I feel dumbfounded, I needed the roomList.size(), I just forgot the ()... I'm such an idiot
sharokua at 2007-7-12 10:02:51 > top of Java-index,Java Essentials,New To Java...