} } here i am getting compiler errors as "type card does not take parameters for each line in the main method". should i create constructor for card? if so how can i create it for unbounded wildcard parameterized type?
Card pair = new Card<?,?>; This line says that the array pair can take objects of any type . Since we have ? ? [2 ?] this implies that the objects must have a constructor that can take 2 arguments.