1 int a[]={1,2,3,2};2 int b[]={4,2,90,8,98};3 int[] d3 = new int[a.length + b.length];4 System.arraycopy(a, 0, d3, 0, a.length);5 System.arraycopy(b, 0, d3, a.length, b.length);System.arraycopy的參數(shù)意義:(src, srcPos, dest, destPos, length)--(源數(shù)組,源數(shù)組開(kāi)始位置,目標(biāo)數(shù)組,目標(biāo)數(shù)組開(kāi)始位置,復(fù)制長(zhǎng)度)
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注