11
在java对象的数组列表,我们可以像这样创建的对象的ArrayList:如何创建快捷
ArrayList<Country> countryList = new ArrayList<Country>();
Country aBucket = new Country();
aBucket.setName("Canada");
aBucket.setCity("Ottawa");
countryList.add(aBucket);
或像这样:
ArrayList<Matrices> list = new ArrayList<Matrices>();
list.add(new Matrices(1,1,10));
list.add(new Matrices(1,2,20));
但我怎么能得到同样的事情/备选SWIFT