Generics java assignment for EPAM Java Lab