Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Set CSV values to a DTO

kiran mahanthyJul 8 2016 — edited Jul 8 2016

Hi All,

I have a CSV file with a header and data rows.

Is there any way that I can read the row and set the values to a DTO object using Java?

Ex:

CSV Header --> Id Division Rank Salary

CSV Rows --> 100 12         1       1000

How can I set this to my DTO Object

public class CSVDto{

public String division;

public String rank;

public String salary;


<getter , setters>

}


Thanks

Kiran

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 5 2016
Added on Jul 8 2016
1 comment
1,009 views