How To Implement Functional Interface In Java