|
|
|
|
Bonjour,
je souhaite trier un tableau d'entiers dans l'odre croissant avec la méthode Arrays.sort(); mais mon code ne fonctionne pas:
class tri implemants Comparable{
public static void main(String[]args){
int[]t={12,8,7,9,13,166};
Arrays.sort(t);
}
}
Configuration: Windows Vista Internet Explorer 7.0