我想通過網絡表格將數據寫入excel。 開始的行使用空白數據創建,最後一行填充數據,最後一個索引值。 即使數據存在於Arraylist中,其他行也沒有被填充數據。 public class Write_Excel {
public static `FileInputStream` `fis`;
public static FileOutputStream fos;
JSONArray topologyInfo = new JSONArray();
String[] ids = {"1","2","3"};
JSONObject topoInfo = readTaskLog(); //returns an object like {Name:"Stack"}
if (topoInfo != null) {
for (String id : id