@@ -0,0 +1,531 @@
+package guava.string;%0A%0Aimport com.google.common.base.Joiner;%0Aimport org.junit.Test;%0Aimport org.testng.collections.Sets;%0A%0Aimport java.util.Set;%0A%0A/**%0A * Created by Linuxea on 2017/8/18.%0A */%0Apublic class StringTest %7B%0A%0A%09@Test%0A%09public void test()%7B%0A%09%09Set%3CString%3E stringSet = Sets.newHashSet();%0A%09%09stringSet.add(%22a%22);%0A%09%09stringSet.add(%22b%22);%0A%09%09stringSet.add(%22c%22);%0A%09%09stringSet.add(%22d%22);%0A%09%09stringSet.add(%22e%22);%0A%09%09stringSet.add(null);%0A%09%09String joinerResult = Joiner.on(%22,%22).skipNulls().join(stringSet);%0A%09%09System.out.println(joinerResult);%0A%09%7D%0A%0A%7D%0A

add string test