close
筆記一下今日的功課
import org.apache.commons.lang.ArrayUtils; String[] SrtArray1 = {"aaa","bbb"}; String[] SrtArray2={"ccc","ddd"}; String[] MergeArray= (String[])ArrayUtils.addAll(SrtArray1, SrtArray2); for (String temp: MergeArray) { System.out.println(MergeArray); }
output:
aaa
bbb
ccc
ddd
文章標籤
全站熱搜
留言列表