View Classes as Modules
class Sort {
public static void exchangeSort(int a[]){
int tmp;
for (int i=0; i<a.length; i++)
for (int j=i+1; j<a.length; j++)
if (a[i]>a[j]){
tmp = a[i];
a[i] = a[j];
a[j] = tmp;
}
}
}
Previous slide
Next slide
Back to first slide
View graphic version