Answers for "csv tabelle in arraylist java"

0

csv tabelle in arraylist java

public class MainClass {

    public static void main(String[] args) {
   
    //BW-Export.CSV File soll nun ausgelesen und in der Konsole ausgegeben werden
   
     CsvReader csvReader = new CsvReader();

        ArrayList<BW_ExportBO> bw_exportTest = csvReader.readExportDataFromCSV("C:\\Users\\root\\Documents\\TestFiles\\bwexp.csv");

        for (java.util.Iterator<BW_ExportBO> iterator = bw_exportTest.iterator(); iterator.hasNext(); ) {
            BW_ExportBO b = iterator.next();

            System.out.print("Projekt-ID: " + b.getProjekt_id() + " | ");
            System.out.print("Projekt-Name: " + b.getProjekt_bezeichnung() + " | ");
            System.out.print("Jobnummer: " + b.getJobnummer() + " | ");
            System.out.print("Jobname: " + b.getJobname() + " | ");
            System.out.print("Mitarbeiter-ID: " + b.getMitarbeiter_id() + " | ");
            System.out.print("Mitarbeiter-Name: " + b.getMitarbeiter_name() + " | ");
            System.out.print("Externer Berater: " + b.getExt_berater() + " | ");
            System.out.print("Datum: " + b.getDatum() + " | ");
            System.out.print("Startzeit: " + b.getStartzeit() + " | ");
            System.out.print("Ende: " + b.getEndezeit() + " | ");
            System.out.print("TB Beschreibung 1: " + b.getTb_beschreibung1() + " | ");
            System.out.print("TB Beschreibung 2: " + b.getTb_beschreibung2() + " | ");
            System.out.print("Aufwand: " + b.getAufwand() + " | ");
            System.out.println("Pause: " + b.getPause() + " | ");
        }

    }
}
Posted by: Guest on December-22-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language