wood burning stoves 2.0*
The moose likes JSP and the fly likes display rows in order  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "display rows in order  " Watch "display rows in order  " New topic
Author

display rows in order

Sri Dharan
Ranch Hand

Joined: Aug 21, 2008
Posts: 74
Hi Friends,
In an employee object have properties like first name, last name, email ,location.I want to display the rows in ascending/descending order of first name.Please help in this solution.

regards
Sri
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61761
    
  67

How do you sort just one object? Or do you have a list of them? Please be complete in your questions.

Please read this for more information.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sri Dharan
Ranch Hand

Joined: Aug 21, 2008
Posts: 74
Hello,
Recently I went for an interview ,in that he asked this question .I did not find any solution.That question is: In one employee object have different propertie like firstName,lastName,email ,location,..He wants do display all the properties in order of firstName property.
Is it possible to do that?If yes please explain...

regards
Sri
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31057
    
232

Sri,
I think he was looking to see if you know about the Comparator interface. Sometimes interview questions are incomplete, but you can always ask the interviewer clarifying questions.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: display rows in order