Solved

Sorting a simple array by 1 of its fields

Posted on 2004-04-09
3
181 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 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
sumHeights2  challenge 7 76
bunnyEars2 challenge 6 68
IT Company 5 69
Java JRE greater than 1.6 5 21
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…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now