Skip to content

Commit 8651cd8

Browse files
committed
update readme
1 parent d53c025 commit 8651cd8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ Car car = cars.get(0);
316316

317317
=== Example 4
318318

319-
Consider you have the table like below:
319+
Consider you have a table like below:
320320

321321
|===
322322
5+|Class A 5+| Class B
@@ -409,7 +409,8 @@ Using the conventional way, we can retrieve the data using `Poiji.fromExcel`:
409409

410410
[source,java]
411411
----
412-
List<Classes> classes = Poiji.fromExcel(new File(excel), Classes.class);
412+
PoijiOptions options = PoijiOptionsBuilder.settings().headerStart(1).build(); // header starts at 1 (zero-based).
413+
List<Classes> classes = Poiji.fromExcel(new File(excel), Classes.class, options);
413414
414415
Classes firstRowClasses = actualClasses.get(0);
415416

0 commit comments

Comments
 (0)