This article shows creating a generic class. Java generics were introduced with Java SE version 5. Some commonly used generic classes are defined as collections in Java API; for example the ArrayList. The API javadoc documentation shows the ArrayList definition as public class ArrayList<E> (where E stands for an element type). Generics added the compile-time type safety and eliminated the ...
Read More »