fixed appendBolsista()
This commit is contained in:
parent
82a210d72c
commit
0d195e4eb6
1 changed files with 9 additions and 0 deletions
|
|
@ -40,7 +40,16 @@ public class Dados {
|
|||
}
|
||||
|
||||
public void appendBolsista(Bolsista bolsista){
|
||||
int size = this.bolsistas.length;
|
||||
|
||||
Bolsista[] novoArray = new Bolsista[size + 1];
|
||||
|
||||
for (int i = 0; i < size; i++){
|
||||
novoArray[i] = this.bolsistas[i];
|
||||
}
|
||||
|
||||
novoArray[size] = bolsista;
|
||||
this.bolsistas = novoArray;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue