奔跑的小牛 后端 写 Java 这么多年,我为什么推荐在 Stream 和 try-with-resources 中使用 var? Java10 引入局部变量类型推断关键字var,它只能在方法内部使用,编译期确定类型... Java Stream try-with-resources var