public class temp
{
public int data0;//整数
public int data1;//小数
public int data2;
public int data3;
public long firsttime;
public temp(int type,int data0, int data1, int data2, int data3,
long firsttime) {
super();
this.data0 = data0;
this.data1 = data1;
this.data2 = data2;
this.data3 = data3;
this.firsttime = firsttime;
}
}
public class ShareDate {
public static temp mtemp=null;
public static date mdate=null;
}
问题出在MainActivity
我确实喜欢这样
ShareDate.mtemp.date0=20;
然后程序意外停止。不知道哪里错了?