CS计算机代考程序代写 algorithm public class TestTime {

public class TestTime {

public static void main(String[] args) {

Time[] ts;
ts = new Time[5];

ts[0] = new Time(13,0,0);
ts[1] = new Time(14,30,0);
ts[2] = new Time(11,30,0);
ts[3] = new Time(13,0,0);
ts[4] = new Time(12,12,0);

System.out.println(“Before:”);

for (int i=0; i0) {
System.out.print(“,”);
}
System.out.print(ts[i]);
}

System.out.println();

SortAlgorithms.selectionSort(ts);

System.out.println(“After:”);

for (int i=0; i0) {
System.out.print(“,”);
}
System.out.print(ts[i]);
}

System.out.println();

}

}