How to create method to start a report - java

0

How do I create a method for starting a DB report? Follow my method below.

public void printReport (Date initialDate, Date endDate){

        list<Sale> sales = getSales (initialDate, endDate);

        for (Sale s:sales){

            Store st = s.getStore(); // Recura a Loja

            CreditCard cc = s.getCreditCard(); // Recupera o Cartão

            System.out.println(st.getNome() + ";" + cc.getName() + s.getValue());
        }
} 
    
asked by anonymous 29.01.2018 / 13:03

0 answers