早教吧 育儿知识 作业答案 考试题库 百科 知识分享

这个语句应该怎么写?[mwshlcode=java,true]TableCell[]cells=newTableCell[6];//每行6个单元for(inti=0;i

题目详情
这个语句应该怎么写?[mw_shl_code=java,true]TableCell[] cells = new TableCell[6];// 每行6个单元 for (int i = 0; i < cells.length ; i++) { cells[i] = new TableCell(S_row[i], titles[i].width, LayoutParams.FILL_PARENT, TableCell.STRING);}[/mw_shl_code]上面的代码循环给6列数据赋值。然后循环添加到10行:for (int i = 0; i < 10; i++) table.add(new TableRow(cells));现在我想弄10行不相同的数据这么赋值怎么不行呢?class table_data{ TableCell[] T_cell; }; table_data[] tabledata = new table_data[10];for(j = 0; j< 10; j++){for (int i = 0; i < cells.length ; i++) {tabledata[j].T_cell[i] = new TableCell(S_row[i], titles[i].width, LayoutParams.FILL_PARENT, TableCell.STRING);}}
▼优质解答
答案和解析
use Northwind select a.EmployeeID,(select count(EmployeeID) from EmployeeTerritories where EmployeeID=b.EmployeeID), (select count(EmployeeID) from Employees where EmployeeID=a.EmployeeID) from EmployeeTerritories a, Employees b where a.EmployeeID=b.EmployeeID 这个是例子
看了这个语句应该怎么写?[mwsh...的网友还看了以下: