Solved

Sorting a simple array by 1 of its fields

Posted on 2004-04-09
3
186 Views
Last Modified: 2010-03-31
I'm really new to java (perhaps you can see that by my question) and i wanted to know how do i sort an array by one of the fields (Name). I'm using Netbeans 3.5.1. Thanks in advance!!!
0
Comment
Question by:hacktek
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
Thunder_scream earned 50 total points
ID: 10794690
Hi hacktek,
chech this link..might be helpful
http://www.javaalmanac.com/egs/java.util/coll_SortArray.html

Cheers!
0
 

Author Comment

by:hacktek
ID: 10794697
You just hit the spot!!! Thanks a bunch :)
0
 
LVL 2

Expert Comment

by:Thunder_scream
ID: 10794703
hehe.. :) glad I could help
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question