public boolean hasTopping(Topping topping)
  {
    for (Topping toppingToday : toppings)
    {
      if (toppingToday == topping) { return true; }
    }
    return false;
  }
public boolean hasTopping ( Topping topping ) { for ( Topping toppingToday : toppings ) { if ( toppingToday == topping ) { return true ; } } return false ; }
Checks to see if a pizza has a particular kind of topping
<div><b>Example:</b> {@code pizza.hasTopping(topping)}</div>

@param topping A topping from the list to check for
@return <b>true</b> when the pizza has the topping on it