question: place the top k cards in pile on top of my cards , so that pile 's former top card if any is now mine as well . if there are fewer than k cards in pile , move all of them . removes the cards from pile . concode_field_sep ArrayList<Card> _cards concode_field_sep void add concode_elem_sep Card top concode_elem_sep int size concode_elem_sep Card bottom concode_elem_sep Card get concode_elem_sep boolean isEmpty concode_elem_sep void clear concode_elem_sep Card dealTop concode_elem_sep String toString concode_elem_sep void turnOver concode_elem_sep void shuffle concode_elem_sep void copyFrom
target: void function ( Pile arg0 , int arg1 ) { List < Card > loc0 = arg0 . _cards . subList ( Math . max ( 0 , arg0 . size ( ) - arg1 ) , arg0 . size ( ) ) ; _cards . addAll ( loc0 ) ; loc0 . clear ( ) ; }