Posts by Maiky • 1 point
1 post
-
0
votes4
answers47343
viewsA: Remove element from an Arraylist in Java
Using Enhanced for, assuming this.students is an Arraylist, and that Student has propriately made getters: public boolean removeAluno(String name) { for(Aluno a:this.alunos) {…