一个有关java Boolean的小问题请高手帮忙解答
public class study {
public static void test(Boolean bl) {
bl = new Boolean("false");
}
public static void main(String[] args) {
Boolean bl = new Boolean("true");
test(bl);
System.out.println(bl.toString());
}
}
为什么输出的是true而不是false?
[解决办法]