Last active
January 2, 2016 16:39
-
-
Save rschumm/8331928 to your computer and use it in GitHub Desktop.
Einfaches Auslesen eines Excel mit Apach POI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Katalog extractKatalog(Workbook excel) { | |
// System.out.println(excel.getNumberOfSheets()); | |
Sheet sheet = excel.getSheetAt(0); | |
Katalog katalog = new Katalog("der erste Katalog"); | |
for (Row zeile : sheet) { | |
Cell zelle = zeile.getCell(4); | |
String geVoString = zelle.getStringCellValue(); | |
... | |
} | |
return katalog; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>org.apache.poi</groupId> | |
<artifactId>poi</artifactId> | |
<version>3.9</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.poi</groupId> | |
<artifactId>poi-ooxml</artifactId> | |
<version>3.9</version> | |
</dependency> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment