(1)String.join 【1.8】
参数:
1、CharSequence, CharSequence...
2、CharSequence , Iterable<? extends CharSequence>
用例
String seqs = "123,234,345,456";
String[] seqArray = seqs.split(",");
// 123 OR 234 OR 345 OR 456
System.out.println(seqs.join(" OR ", seqArray));
网友评论