这是我的代码。当我运行它时,我收到一条错误消息:
java.lang.ArrayIndexOutOfBoundsException: 索引=6 长度=6
for(i=1;i<6;i++)
{
String s = getSharedPreferences("TEXT", 0).getString("DATA" + sequenceNumber, null);
if(s!=null){
String[] numb= new String[6];
numb[i]=s;
Bundle b=new Bundle();
b.putStringArray(key, numb);
Intent i=new Intent();
i.putExtras(b);
i.setClass(MainActivity.this, NotifyEmergencyCall.class);
startActivity(i);
}
}
谁能帮我这个?谢谢你。