File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 61092
    
  66

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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30356
    
150

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: display rows in order