What to put in place ??? in the following code to make it work?
import java.util.List; public class Generic { private static class Foo<T> { Foo(Class<T> clazz) { assert clazz != null; } } public static void main(String[] args) { Class<List<String>> x = ???; Foo<List<String>> t = new Foo<List<String>>(x); } }
source share