标签:
方法1:
ArrayList<String> arrList1 = (ArrayList<String>) Arrays.asList("Buenos Aires", "Cordoba", "La Plata");
方法2:
List<String> arrList2 = Arrays.asList("Buenos Aires", "Cordoba", "La Plata");
方法3: 个人比较喜欢这种
ArrayList<String> list = new ArrayList<String>() {
{
add("Buy and Hold");
add("Daily");
add("Monthly");
}
};
标签:
原文地址:http://www.cnblogs.com/kill0001000/p/5054763.html