2
I was searching the internet and saw this way of making association between Java classes. Is it correct to make this type of association? 'Cause I did a lot of research on the Internet and I couldn’t find anything similar.
public class Aluno {
    private int codigo;
    private List<AlunoMateria> materias;
}
public class AlunoMateria {
    private Aluno aluno;
    private Materia materia;
    private Time horaAula;
}
public class Materia {
    private int codigo;
    private List<AlunoMateria> alunos;
}
What do you want with the Student class? If the Student class had a
List<Materia>and the class Materia aList<Aluno>would not be enough?– ramaral
I just wanted to know if this is valid, because in the example we put the time.
– Stênio Barroso de Moraes