int i = pItems.size () - 1; if (peer != null) { ChoicePeer cp = (ChoicePeer) peer; cp.add (item, i); } else if (selectedIndex == -1) select(0); }
if (peer != null) ((ChoicePeer) peer).add(item, getItemCount() - 1);  if (selectedIndex == -1) select( 0 ); }
add(String item){  if (item == null)    throw new NullPointerException ("item must be non-null");  pItems.addElement(item);  int i = pItems.size () - 1;  if (peer != null)    {      ChoicePeer cp = (ChoicePeer) peer;      cp.add (item, i);    }  else if (selectedIndex == -1)     select(0);}