public static void main(String args[]) { for (Usuario u : new UsuarioDao().listar()) { System.out.println(u.getNome()); } }