Generics make your code more flexible and easier to read, and they help you avoid ClassCastExceptions at runtime. Get started with this introduction to using generics with the Java Collections ...
I have to make a class which has a main method that makes a ArrayList from input by a user. Bascially the user types in a integer, hits enter, then types another integer, hits enter, up to as many as ...