Guest User

Untitled

a guest
Jul 31st, 2012
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. private static void listAluno() {
  2. Keyboard.clrscr();
  3. Object[] listaAluno = null;
  4. listaAluno = listaAlunos.sort(new PorNomeAluno());
  5. System.out.println("Codigo Nome da Pessoa nome Orgao");
  6. System.out.println("------ -------------------------- ----------");
  7. Aluno aluno;
  8. for (int i = 0; i < listaAluno.length; i++) {
  9. aluno = (Aluno) listaAluno[i];
  10. System.out.printf(" %-10d %-1s\n", aluno.getMatAluno(),
  11. aluno.getNomeAluno());
  12. }
  13. Keyboard.waitEnter();
  14. }
Advertisement
Add Comment
Please, Sign In to add comment