public static void main(String[] args) {
// TODO Auto-generated method stub
ArrayList l=new ArrayList();
l.add("s");
test(l);
ArrayList p2= l;
System.out.println(l.size());
}
private static void test(ArrayList v) { //v = l
v.add("dd");
v = null;
}
// TODO Auto-generated method stub
ArrayList l=new ArrayList();
l.add("s");
test(l);
ArrayList p2= l;
System.out.println(l.size());
}
private static void test(ArrayList v) { //v = l
v.add("dd");
v = null;
}