/** * In this example we pass a Supplier instance via lambda expression to displayCurrencyCode method, * beside use of lambda this example also shows how we can separate concerns via Supplier pattern. * In real application, we want to keep displaying/renderer and retrieving currency code logic * separated. */ public class SupplierExample {