mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 13:50:53 +07:00
12 lines
316 B
Java
12 lines
316 B
Java
import java.util.*;
|
|
class Test {
|
|
{
|
|
List<? super CharSequence> list = new ArrayList<CharSequence>();
|
|
List<? super String> foo = list;
|
|
System.out.println(foo);
|
|
|
|
List<? extends String> list1 = new ArrayList<String>();
|
|
List<? extends CharSequence> foo1 = list1;
|
|
System.out.println(foo1);
|
|
}
|
|
} |