I have;

List<String> stringList = new ArrayList<String>();
List<Integer> integerList = new ArrayList<Integer>();

Is there a (easy) way to retrieve the generic type of the list?

15 Answers
15

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *