1.赋值/初始化
ArrayList<String> IndustryCategoryList=new ArrayList<>()
2.添加元素
for(int i=0;i<res.length;i++){ word_list.add(res[i]); 3.打印信息 ArrayList<String> IndustryCategoryList= String[] tt1=IndustryCategoryList.toArray(new String[IndustryCategoryList.size()]); System.out.println("query_result:\t"+ Arrays.toString(tt1));
二、HashMap HashMap<String, String> Query4IndustryCategoryHash = new HashMap<>();
Query4IndustryCategoryHash.put(query, category_type);