Good day, I decided to go into generics deeper than SomeClass<T> , and jumped at the complexity.
let's say there is a class
public class SomeClassA<T>{ } and class
public class SomeClassB<X>{ public void someMethod(Object, X){} } How do I set generic in SomeClassB so that it has <SomeClassA<T>> at the input and works, respectively, with T
Thank you in advance
someMethodargument of typeSomeClassA<T>? Can you give examples of the alleged code? While not entirely clear. - default localesomeClassB scb = new SomeClassB<SomeClassA<Integer>>; scb.someMethod(new Integer(10));- Blc_DragonSomeClassA<T>SomeClassB<T>. - Blc_Dragon