Hi,
basically i have got the code all sorted just need to know how to call the array - heres the code;
public int sortArray()
{
Comparable[] a = {People.ArrayLis t(people[])};
Comparable[] sortedArray = main.sort(a);
}
the bold section is the part i am stuck with.
My array is in class People and in method ArrayList.
My array is called people.
any ideas would be great,
thanks
dave
basically i have got the code all sorted just need to know how to call the array - heres the code;
public int sortArray()
{
Comparable[] a = {People.ArrayLis t(people[])};
Comparable[] sortedArray = main.sort(a);
}
the bold section is the part i am stuck with.
My array is in class People and in method ArrayList.
My array is called people.
any ideas would be great,
thanks
dave
Comment