Program to the interface and not absolute implementation


#1

Please keep the input parameters as List and not ArrayList. This is not a good practice.