把集合中的字段放入数组

  Vector mLeagueList = new Vector();
  League league = new League();//类名

 然后操作

String[] data=new String[mLeagueList.size()];		
for (int i = 0; i < mLeagueList.size(); i++) {
	League league =(League) mLeagueList.elementAt(i);
String name=league.getLeagueName();
System.out.println(code);
	data[i] = name;
				}

 

你可能感兴趣的:(数组)