ArrayUtils是Apache提供的數(shù)組處理類庫,其addAll方法可以很方便地將兩個數(shù)組連接成一個數(shù)組。 1 2 3 4 5 6 7 int[] intArray = {1,2,3,4,5}; int[] intArray2 = {6,7,8,9,10}; // Apache Commons L int[] combinedIntArray = ArrayUtils.addAll(intArray, intArray2); ...
www.dbjr.com.cn/article/1656...htm 2025-5-24