【发布时间】:2014-01-15 01:52:53
【问题描述】:
请帮助我们如何将下面的 Arraylist 方法转换为 Json
public ArrayList<String> helloName(String patentno) {
ArrayList<String> bibo = new ArrayList<String>();
for (int row = 2; row < rowsize; row++) {
pno = driver.findElement(
By.xpath("//*[@id='body']/table/tbody/tr[" + row + "]/td"))
.getText();
bibo.add(pno);
}
return bibo;
}
【问题讨论】: