Java 8 Features
1. forEach method - this methods takes method as an arguement.
2. functional interface - this allows us to declare only 1 method in the interface. it basically implements I (Interface Segregation) principle from SOLID principles.
Executing...
Java 8 Features
