@@ -0,0 +1,619 @@
+package guava.optional;%0A%0Aimport com.google.common.base.Optional;%0Aimport org.junit.Test;%0A%0A/**%0A * Created by Linuxea on 2017/8/18.%0A */%0Apublic class OptionDemo %7B%0A%0A%09@Test%0A%09public void test1()%7B%0A%09%09Object optional = Optional.fromNullable(null).or(%22fuck%22);%0A%09%09System.out.println(optional);%0A%09%7D%0A%0A%09@Test%0A%09public void test2()%7B%0A%09%09String empty = String.valueOf(%22%22);%0A%09%09String empty2 = String.valueOf(%22%22);%0A%09%09System.out.println(empty == empty2);%0A%09%09System.out.println(%22%22 == %22%22);%0A%09%09System.out.println(returnEmpty() == returnEmpty2());%0A%09%7D%0A%0A%09private String returnEmpty()%7B%0A%09%09return %22%22;%0A%09%7D%0A%0A%09private String returnEmpty2()%7B%0A%09%09return %22%22;%0A%09%7D%0A%0A%0A%7D%0A

add guava test file