Java8 (5):使用Optional 处理null. 写过Java 程序的同学,一般都遇到过 NullPointerException :) —— 为了不抛出这个异常,我们便会写如下的代码:
確定! 回上一頁