一: private String[] data = new String[]{"Hello", "jike", "world"};

二: 创建数组对象:

 

private CellData[] data = new CellData[]{new CellData("jike", "world"), new CellData("title", "content")};

public class CellData {

public CellData(String title, String content){
this.content = content;
this.title = title;
}

public String title = "title";
public String content = "content";
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-04
猜你喜欢
  • 2021-12-28
  • 2022-01-08
  • 2021-09-16
  • 2021-11-11
  • 2022-03-07
  • 2021-11-09
  • 2022-01-13
相关资源
相似解决方案