Quando coloco o trecho do código
protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); List alunos = new ArrayList<>(Arrays.asList("Alex", "Sato", "Vanessa")); View primeiroAluno = findViewById(R.id.textView); View segundoAluno = findViewById(R.id.textView2); View terceiroAluno = findViewById(R.id.textView3); primeiroAluno.setText(alunos.get(0));
ocorre o erro
error: cannot find symbol primeiroAluno.setText(alunos.get(0)); ^ symbol: method setText(String)