Added if methods to Stream methods to perform an action if a condition is met.
Updated the Examples class to demonstrate the new if methods.