Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.out.println("---Listagem dos nomes dos encarregados de educação e quantidade de sócios menores a seu cargo\n---\n");
- String[] encarregados = new String[4];
- int cont_enc = 0;
- for (int i = 0; i < listaSocios.length; i++) {
- if (listaSocios[i] instanceof SocioMenor && !(listaSocios[i] == (null))) {
- int cont = 1;
- Boolean igual_enc = false;
- SocioMenor a = (SocioMenor) listaSocios[i];
- for (int j = 0; j < cont_enc; j++) {
- if (a.getEncarregadoDeEducacao().equals(encarregados[j])) {
- igual_enc = true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement