Я отправляю arraylist из моей основной деятельности на мою вторую активность со следующим кодом
ArrayList<String> RecipeNames = new ArrayList<>();
RecipeNames.add("Cake");
intentLoadNewActivity.putExtra("names",RecipeNames);
startActivity(intentLoadNewActivity);
И вот во втором моем занятии я получаю arraylist.
ArrayList<String> names = (ArrayList<String>) getIntent().getStringArrayListExtra("names");
TextView Tname = findViewById(R.id.RecName);
// here I set a textView to be the string that arraylist contains.
Tname.setText(String.valueOf(names));
My проблема в том, что когда я отображаю массив, вместо «Cake» я получаю «[Cake]»
Как мне удалить «[]»?