-1
Well come on, I’m doing an application, this will have several student names. I made a method that add each name in a table of BD. in the comic is like this(Antonio, Pedro, Caio, Felipe......).
I need this BD data to be recovered and stay in the ARRAY of the Student class.
//Vetor da Classe aluno
Aluno[] alunos = bancoDeDados.obterAlunos();
OBS** This method has nothing written, because I don’t know how to do it, if you need to have Return or void.
STUDENT CLASS:
//Class Student with data of each AETUB student as name, id and presence; public class Student {
private String nome;
private int id;
private int presencaTotal;
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getPresencaTotal() {
return presencaTotal;
}
public void setPresencaTotal(int presencaTotal) {
this.presencaTotal = presencaTotal;
}
}
TO VIEW THE COMPLETE CODE [DROPBOX LINK]: < https://www.dropbox.com/s/xv1tl9k7sqkqfbp/MainActivity.java?dl=0 > [DROPBOX LINK]
Thanks again, I’ll stop to ask you are chasing me hahahaha. Thanks man, sorry to bother you.
– Antonio_Sistema_de_Informacao