早教吧作业答案频道 -->其他-->
这个语句应该怎么写?[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...的网友还看了以下:
therebe的特殊疑问句therebe句型对地点状语提问的特殊疑问句应该是怎么样的?我认为,th 2020-05-13 …
英语的从句问题他不知道他当时在想什么.应该是hedidn'tknowwhatwasonhismin 2020-05-14 …
定语从句的问题要是定语从句的从句不缺成分,是不是用that,并且省略还有一个句子gentleman 2020-06-30 …
英语句型:电影蜘蛛侠:Imissedthepartwherethat'smyproblem.该句是 2020-07-03 …
分析英语句子,快来啊.英语Sheistheonlyonewho'sstudyingFrench我想 2020-07-20 …
Heissoyoungthathecan't能省略主语么1.Heissoyoungthatheca 2020-07-21 …
结合语境,填入横线处最恰当的一项是()5.下面语段横线处,应填入的句子只有一项,该句应是()四时不 2020-07-26 …
这个语句应该怎么写?[mwshlcode=java,true]TableCell[]cells=ne 2020-10-30 …
Heitbetteriftherewasachance.AcandoBdidCdoesDcouldd 2020-11-21 …
“Eitherofthemisn'tright”?Eitherof连用时——两个之中的任意一个/两个 2020-12-17 …