Sorting an array of objects

I need to sort an array of objects

Page 1 of 1

1 Replies - 1555 Views - Last Post: 28 March 2008 - 08:01 AM Rate Topic: -----

#1 mathews666  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 26-January 08

Sorting an array of objects

Posted 28 March 2008 - 07:59 AM

Now I need to sort them but conventional methods don't work.

name of the array of objects: vehicleArr
indexcounter a number of items on the array

I have loaded and figured it out how to print all the object in my array.

for(int i = 0; i < indexCounter; i++)
{
System.out.println(vehicleArr[i]);
}


I need to sort this array Helpppp!!!!!!!!!! it is an array of objects!

Is This A Good Question/Topic? 0
  • +

Replies To: Sorting an array of objects

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1642
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Sorting an array of objects

Posted 28 March 2008 - 08:01 AM

Please don't double post, it isn't going to get you help any faster
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1