question: public void addToPickingQueue ( VisualItem item ) { if ( pitems . length == psize ) { int capacity = ( 3 * pitems . length ) / 2 + 1 ; VisualItem [ ] q = new VisualItem [ capacity ] ; int [ ] s = new int [ capacity ] ; System . arraycopy ( pitems , 0 , q , 0 , psize ) ; System . arraycopy ( pscores , 0 , s , 0 , psize ) ; pitems = q ; pscores = s ; } pitems [ psize ] = item ; pscores [ psize ++ ] = ( sort != null ? sort . score ( item ) : 0 ) ; psorted = false ; }
target:  Add an item to the picking queue.