Bookmark Topic Watch Topic
  • New Topic

How to make the CSV file print the details using TreeSet  RSS feed

 
Sucheta Shrivastava
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have an Employee class that has employee id, salary, rating , first name and last name. I have the data stored in a CSV file. And i use TreeSet as i need to print the details according to the ascending order of rating and no printing of duplicate data. I have three classes - Employee that defines all getters, setters, methods - toString, compareTo, hashcode, equals.  2nd class - have to define the file and print the details of the TreeSet. 3rd lass has main() that prints the file.  I need help with the fixing of the code. I want to print the details of treeset in the main. how to do that.


Class Employee DataStore



 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37513
554
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
This looks like a duplicate. Closing so we keep all questions about how to print Employee in one thread.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!