Strategy Design Pattern In Java