8
టాస్క్
Java Collections, స్థాయి, పాఠం
Calling a static method
Modify the GenericStatic class's static method to make it generic.
An example method call is provided in the main method.
8
టాస్క్
Java Collections, స్థాయి, పాఠం
Introducing generics
Parameterize the SomeClass and Solution classes as follows:
1. SomeClass must work with types that inherit Number;
2. Solution must work with types that inherit List, which in turn have SomeClass as a type argument.