DZone Forums
Go Back   DZone Forums > Community > The DZone Network > Zones
Reload this Page Arrange a List of items in to alphabetical Order
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jul 2008
Default Arrange a List of items in to alphabetical Order - 07-09-2008, 02:59 AM

Hi EveryBody,

I have on page .When i click drag drop box in that page there are certain list of items are available. but my requirement is to arrange list of items in to a particular alpha betical oreder.

Technologies used in this project.

core java, servlets, jsp, struts, ejb1.0

Eclipse 2.1.2,Tomcat 4.1.29

Thanks,
Sumanth Reddy
+919885378878
Reply With Quote
  (#2 (permalink)) Old
Moderator
 
Posts: 102
Thanks: 0
Thanked 7 Times in 7 Posts
Join Date: Jan 2008
Default 09-17-2008, 06:10 AM

It should be as simple as the following :

Vector v = new Vector();
v.add("three");
v.add("one");
v.add("two");
Collections.sort(v);
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with deleting Items from the Context Menu of my RCP App. alwin74 Eclipse 0 07-30-2008 09:09 AM
Contributing ToggleState menu items or ViewFilter(Action) contributions.. (3.3) joco Eclipse 0 07-01-2008 04:41 AM
How to disable items on the Dynamic pull down on Toolbar? roller Eclipse 0 04-28-2008 03:21 AM
Coloring the Alternate List Items jayjamba Eclipse 0 04-24-2008 02:00 AM
Plugin menu items arthur_dent.42 Eclipse 1 03-27-2008 05:14 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com