package com.dyn.itheima;
import java.util.ArrayList;
public class Test {
public static void main(String args[]) {
ArrayList<Integer> list = new ArrayList<Integer>();
list.add(12);
list.add(44);
list.add(10);
change(list);
System.out.println(list);
}
private static void change(ArrayList<Integer> list) {
// TODO Auto-generated method stub
list = null;
}
}
最终list,为什么不为null,求大神帮助,
|
|