Figure A. Implement Algorithms With Generics.
Generics provide the ability to define a class without setting its type, making it useful for different data types in different situations.