Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 31st, 2012  |  syntax: None  |  size: 0.57 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.     }