List <Integer> list = new ArrayList<>(); Collections.addAll(list, 1, 2, 3, 4, 5);. And another one to exemplify the operation with two arrays:.
確定! 回上一頁