Monday, 10 February 2014

Sorting CSV file data

Assume You have a CSV file,with employee data
employeedata.csv
1001 satya 5000
1002 kumar 6000
1003 ram 4000WAP to read all employee data line by line,and store them in Employee Object(DTO object).
Now store the  Employee object in an Array in Ascending order of Salary.
Donot use collections and comparator concepts.
Use Employee[] and do shifting as needed

No comments:

Post a Comment