Write your own array-based list class from scratch using generics.
Implement an interface called CommonList.java that supports all list operations.public interface GeneralList,<E>, public void add (Eelement), ect….
Implement those interface methods in a class called SSNList.java. The purpose of this class is to create a concrete class for storing SSN objects.
Create a SSN.java class that stores a name, SSNumber, (9 digits only each digit must be in the range of 0 through 9 otherwise throw an exception in the SSN class which is caught in main()).
Demonstrate the classes in a file called SSNDemo.java. This file should demonstrate all the operations in the interface.