Skip to content

Commit 94b1e08

Browse files
author
Rajeev Kumar Singh
committed
CsvUser
1 parent 7a1d069 commit 94b1e08

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

java-csv-file-handling-with-opencsv/src/main/java/OpenCSVReadAndParseToBean.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ public static void main(String[] args) throws IOException {
2323
.withIgnoreLeadingWhiteSpace(true)
2424
.build();
2525

26-
List<CSVUser> CSVUsers = csvToBean.parse();
27-
28-
for (CSVUser CSVUser : CSVUsers) {
29-
System.out.println("Name : " + CSVUser.getName());
30-
System.out.println("Email : " + CSVUser.getEmail());
31-
System.out.println("PhoneNo : " + CSVUser.getPhoneNo());
32-
System.out.println("Country : " + CSVUser.getCountry());
33-
System.out.println("---------------------------");
26+
List<CSVUser> csvUsers = csvToBean.parse();
27+
28+
for (CSVUser csvUser : csvUsers) {
29+
System.out.println("Name : " + csvUser.getName());
30+
System.out.println("Email : " + csvUser.getEmail());
31+
System.out.println("PhoneNo : " + csvUser.getPhoneNo());
32+
System.out.println("Country : " + csvUser.getCountry());
33+
System.out.println("==========================");
3434
}
3535
}
3636
}

0 commit comments

Comments
 (0)