//实例对象tables
List<Table> tables = new TableManager(getApplicationContext()).queryTables();
spinnerValue = new String[tables.size()+1];
spinnerValue[0]=table_no;
//Iterator遍历 tables
int i = 1;
for (Iterator<Table> iterator = tables.iterator(); iterator.hasNext(); i++) {
spinnerValue[i] = ((Table) iterator.next()).getRemark();//getNum().toString()
}
时间: 2024-10-09 11:30:13