public boolean shippingApplies(){
  boolean shippingApplies=false;
  for (  ShoppingCartItem item : this) {
    if (item.shippingApplies()) {
      shippingApplies=true;
      break;
    }
  }
  return shippingApplies;
}

public boolean shippingApplies ( ) { boolean shippingApplies = false ; for ( ShoppingCartItem item : this ) { if ( item . shippingApplies ( ) ) { shippingApplies = true ; break ; } } return shippingApplies ; }
returns true when there are shippable items in the cart
