import java.util.ArrayList;
import java.util.List;
import javax.xml.soap.Text;
/*
* Generic wildcard?
*
* Wildcards:
*1. Generally used to declare variables and formal parameters
*2. Cannot be used to create objects and generic methods, generic classes, and generic interfaces.
*
*
*
*/
public class Windous {
public static void main(String[] args) {
List<?> list=new ArrayList<String>();//一般不能用于添加数据,应用来读取数据
text(list);
}
public static void text(List<?> list) {
}
}
key content