why do we use the list class in java code example
Example: list class type java
List<String> myList = new ArrayList<String>();
return (Class<List<String>>)myList.getClass();
List<String> myList = new ArrayList<String>();
return (Class<List<String>>)myList.getClass();