• Post Reply Bookmark Topic Watch Topic
  • New Topic

I want to print the details of the TreeSet  RSS feed

 
Sucheta Shrivastava
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here i want to print the details . I am unable to do that . Please tell hw to print. I have a printDetails method. But it is not printing .


class Employee





 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37496
546
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to either add a toString() method to Employee or call the getters to print the fields you need.
 
Norm Radder
Rancher
Posts: 2240
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The getEmployeeDetails() method doesn't add any items to  lines.  That method needs code to read the file and save the data.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!