KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
If you have a method with the signature: Class<? extends List<String>> getObjectType() { return ?????; } How do you return a proper generic version of the List class? return List.class; //errors return List<String>.class; //errors return List.class<String>; //errors what is the proper syntax to handle this?
Tags (comma-separated)
Save Edits
Cancel