后续补笔记,先写个demo
package com.example.demo.util;
/**
* https://www.baidu.com/s?ie=UTF-8&wd=java%20%E5%80%BC%E5%BC%95%E7%94%A8
*/
public class TestBoolean {
public static void main(String[] args) throws Exception {
boolean flag = true;
test(flag);
System.out.println(flag);
}
public static void test(boolean flag) {
flag = false;
System.out.println("test方法 " + flag);
}
}