I need to organize the values that the array randomly receives and leaves them in descending order, but I honestly do not know how to do that, here is my code, I could not organize.
package gerarOrganizar;
import java.util.Random;
public class GerarOrganizar {
public static void main(String[] args) {
int i=0;
int[] array = new int[10];
Random gerador=new Random();
int[] arrayF= new int[10];
int j = 0;
for(i=0;i<10;i++){
array[i]=gerador.nextInt(25);
if(array[i]==0)
i--;
}//for
while(j<10){//meu problema começa daqui em diante
for(j=0;j<10;j++){
for(i=0;i<10;i++){
if(comp<array[i]){
comp=array[i];
arrayF[j]=array[i];
}//if
}//segundo for
}//primeiro for
System.out.println(arrayF[j]);
}//while
}//main
}//class