954,545 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

string-comparison methods and the techniques

I'm having difficulty in formulating the code in this problem:Use the string-comparison methods discussed and the techniques
for sorting arrays developed to write an application that alphabetizes
a list of strings. Allow the user to enter the strings in a text field. Display the results in a text area.

I badly need help.

enitsirc
Newbie Poster
3 posts since Mar 2009
Reputation Points: 10
Solved Threads: 0
 

Hi enitsirc and welcome to DaniWeb,

What are the "string comparison methods discussed" in your class? And the techniques for sorting arrays too...

darkagn
Veteran Poster
1,197 posts since Aug 2007
Reputation Points: 404
Solved Threads: 200
 

Your question is a little confusing but from what I have gathered here's what you need to do:
Take several strings from a user sort them alphabetically and show them, in a text area, in sorted order.

If yes, you can use the compareTo() method of the String class for this. It compares two strings lexicographically.

verruckt24
Posting Shark
952 posts since Nov 2008
Reputation Points: 485
Solved Threads: 89
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You