java.util.list.size()

for the wxample as below:List rs = q.list();if(rs.size() == 1){SpInventory inv = (SpInventory)rs.get(0);inv.setQtyOnOrder(qty);ses.update(inv);}may i know what is the '1' means in rs.size() ==1?
[259 byte] By [moonnya] at [2007-10-3 8:22:59]
# 1
1 means int 1.Rgds
ayusman_dikshita at 2007-7-15 3:28:57 > top of Java-index,Java Essentials,New To Java...
# 2
is this means that the list have 1 record?
moonnya at 2007-7-15 3:28:57 > top of Java-index,Java Essentials,New To Java...
# 3

From the API docs:

public int size()

/*

Returns the number of elements in this list.

If this list contains more than Integer.MAX_VALUE elements,

returns Integer.MAX_VALUE.

*/

BIJ001a at 2007-7-15 3:28:57 > top of Java-index,Java Essentials,New To Java...