public class ListTest {
public static void main(String[] args) {
List orgList = new ArrayList();
transList(orgList);
for (Object o : orgList) {
System.out.println(o.toString());
}
}
static void transList(List orgList) {
orgList.add("aa");
orgList.add("bb");
}
}
结果:aa bb