Well come on, I'm making an application, this will have several student names. I made a method that would add each name to a DB table. no bd is like this (Antonio, Pedro, Caio, Felipe ......).
I need this data from the DB to be recovered and stay in the ARRAY class Student.
//Vetor da Classe aluno
Aluno[] alunos = bancoDeDados.obterAlunos();
NOTE: This method has nothing written, because I do not know how to do it, whether it will need to 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 [LINK DROPBOX]: < link > [LINK DROPBOX]