Hi,
Is there any kind of framework/tool/solution to convert the text file content into
java pojo objects.
Example
I have a text file containing 100 lines of data, each line is having 5 columns of data, each column I want to assign to my java pojo class attributes. So each line of record is represending a pojo class. At the end of my process, I should have a list of pojo class for the entire file.
personal.txt
--------------
Murali MCA Denver
Simi BE LasAngels
Siddhu MBBS Washington
personal.java
-----------------
class personal {
String name;
String degree;
String location;
}
In my java code, it should take the input of the personal.txt file and conver that into a list of personal pojo objects (List<Personal> personalList) as a output. How do we achieve this??
Please suggese me the solution as earliest, thanks in advance.