For example, if I need to create arraylists for each person who registers on my system:
ArrayList pessoa1 ArrayList();
ArrayList pessoa2 ArrayList();
ArrayList pessoa3 ArrayList();
The problem is that I do not know how many people are going to register so it would have to be created dynamically, type:
for(int i = 0; i < numeroPessoasCadastradas; i++){
pessoa[i] = new ArrayList();
}
Is it possible to do something like this?