Joiner joiner = Joiner.on("#|").skipNulls(); String test = joiner.join("1", "2", "3", "4"); System.out.println(test);
打印结果为: 1#|2#|3#|4 ip