Prg donne aucun resulat

Résolu
domxaline -  
 domxaline -
Bonjour,
comme le titre dit,mon prg affiche aucun resultat

public class Sansimport
{
public static void main(String []args)
{
int n = 0;

int [] tab = new int[n];
for(int i = 0; i < (n - 1); i++)
{
for(int i1 = 0; i1 < (n - 1); i1++)
{
if(tab[i1] > tab[i1 + 1])
{
int tempo = tab[i1];
tab[i1] = tab[i1 + 1];
tab[i1 + 1] = tempo;
}
}
}
// affichage du tableau
for(int i = 0; i < n; i++)
{
System.out.print(tab[i] + " " );
}
}
}

1 réponse

domxaline
 
resolu
0