Java Generics in Java Generics in Java Generics Quiz

Leonardo Flores Toscano
Leonardo Flores Toscano
2,349 Points

Sorry I am not understanding this type 2 question and I am stucik in here according to me class Pair (T a, X b) works

Can you provide the sample of whatever is correct?

1 Answer

Steven Parker
Steven Parker
201,382 Points

The challenge is expecting a different syntax in the answer:

  • angle brackets <> instead of parentheses ()
  • just the type parameters (single-letter upper-case identifiers)