Link to home
Start Free TrialLog in
Avatar of smv939
smv939

asked on

Sort a string array in Java

Hi all,
I have an Array of Sales data from the table. SalesID, SFirstname, SlastName.
  I want to display this data in the order of Slastname. SData s[]  is the array.
 Please help.

Shaji Mary  
ASKER CERTIFIED SOLUTION
Avatar of ksivananth
ksivananth
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of smv939
smv939

ASKER

No it did not work. The lastname  is an array of strings.
>>The lastname  is an array of strings.

How can that be? can you post the code of the Sales class?