android 创建数组

一: 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";
}
posted @ 2016-09-06 08:06  zhoudingzhao  阅读(7988)  评论(0编辑  收藏  举报