commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1398181 - /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/package-info.java
Date Mon, 15 Oct 2012 03:21:55 GMT
Author: ggregory
Date: Mon Oct 15 03:21:54 2012
New Revision: 1398181

URL: http://svn.apache.org/viewvc?rev=1398181&view=rev
Log:
Javadoc.

Modified:
    commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/package-info.java

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/package-info.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/package-info.java?rev=1398181&r1=1398180&r2=1398181&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/package-info.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/package-info.java Mon Oct
15 03:21:54 2012
@@ -69,9 +69,10 @@
  * <blockquote><pre>
  * Reader in = new StringReader("a,b,c");
  * for (CSVRecord record : CSVFormat.DEFAULT.parse(in)) {
- *     for (int i = 0; i &lt; record.length; i++) {
- *         System.out.println("value " + i + "=" + record.get(i));
+ *     for (String field : record) {
+ *         System.out.print("\"" + field + "\", ");
  *     }
+ *     System.out.println();
  * }
  * </pre></blockquote>
  */



Mime
View raw message