我的代码中有 4 个数组,每次用户在 edittext 中写入一些内容时,我想将该字符串存储在其中一个数组中,我尝试使用 toCharArray 方法,但我不知道如何定义字符串应该放置的数组放入:S
String [] array7 = {"Hey","Was Up","Yeahh"};
TextView txtV1,txtV2;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.layouttry);
txtV1=(TextView)findViewById(R.id.textView1);
txtV2=(TextView)findViewById(R.id.textView2);
Bundle extras = getIntent().getExtras();
String value = extras.getString("Key"); // this value I want to add to the stringarray