Каково конкретное использование подстановочных знаков в дженериках?JAVA

Программисты JAVA общаются здесь
Anonymous
Каково конкретное использование подстановочных знаков в дженериках?

Сообщение Anonymous »


I am confused about the use of the wild cards in generics of java. I know how to use them but I don't understand when I should use them .

I have learnt that wild cards can be used like this

public static void sort(ArrayList

Источник: https://stackoverflow.com/questions/781 ... n-generics

Вернуться в «JAVA»