From 46ce06d3ff4f0cfd7e1412f5d3b1aba21b763fa2 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Fri, 13 Sep 2013 08:29:49 +0000 Subject: [PATCH] We are really iterating over records here git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1522811 13f79535-47bb-0310-9956-ffa450edef68 --- src/site/xdoc/index.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml index a1c3ced4..01ab1cfc 100644 --- a/src/site/xdoc/index.xml +++ b/src/site/xdoc/index.xml @@ -26,8 +26,8 @@ limitations under the License.

Commons CSV reads and writes files in variations of the Comma Separated Value (CSV) format.

To parse an Excel CSV file, write:

Reader in = new FileReader("path/to/file.csv"); -Iterable<CSVRecord> parser = CSVFormat.EXCEL.parse(in); -for (CSVRecord record : parser) { +Iterable<CSVRecord> records = CSVFormat.EXCEL.parse(in); +for (CSVRecord record : records) { String lastName = record.get("Last Name"); String firstName = record.get("First Name"); }