コードに 4 つの配列があり、ユーザーが edittext に何かを書き込むたびに、その文字列を配列の 1 つに格納したいので、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