question: private void toggleFavorite ( ) { for ( String game : list . getSelectedValuesList ( ) ) { if ( favorites . contains ( game ) ) { favorites . remove ( game ) ; } else { favorites . add ( game ) ; } } saveFavorites ( ) ; update ( ) ; }
target:  Removes all selected favorites and adds all selected non-favorites as favorites.