摘要:
想看几个例子的效果: public class LockSupportTest { public static void main(String[] args) { Thread t = new Thread(() -> { for(int i = 0; i < 10; i++) { System. 阅读全文
摘要:
1:自动装箱、拆箱 例子: Integer a = 10; //this is autoboxing //上面的操作其实就是下面这个,编译器会帮你自动转,不用手动 Integer b = Integer.valueOf(10); //under the hood 看下Integer中valueOf( 阅读全文