Witam wszystkich forumowiczów,
potrzebuje posortować tablicę względem daty. Mam problem z przypisaniem:
public static void bubbleSort(Message[] a) {
int size = a.length - 1;
for (int i = 0; i < a.length - 1; i++) {
for (int j = 0; j < size; j++) {
Date temp = a[j].getSentDate();
if (a[j].getSentDate().after(a[j+1].getSentDate()))
{
a[j].getSentDate() a[j+1].getSentDate();
a[j+1].getSentDate() = temp;
}
}
size--;
}
}