/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package database_teste; import java.util.Vector; /** * * @author Andre */ public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { Consulta consulta = new Consulta(); Vector lista = consulta.selectAll(); for (int i = 0; i < lista.size();i = i+3){ System.out.println(lista.get(i)+" - "+ lista.get(i+1) + " - "+ lista.get(i+2)); } } }