Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Sorting a simple array by 1 of its fields

Posted on 2004-04-09
3
Medium Priority
?
190 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
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
Thunder_scream earned 200 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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 about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

877 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