Problem gelöst...
Danke trotzdem !
public class Sortieren {
public static void main(String[] args)
{
int[] value;
value=new int [20];
{
value[0] = 56;
value[1] = 13;
value[2] = 1;
value[3] = 66;
value[4] = 66;
value[5] = 0;
value[6] = 99;
value[7] = 36;
value[8] = 56;
value[9] = 24;
value[10] = 78;
value[11] = 65;
value[12] = 44;
value[13] = 59;
value[14] = 61;
value[15] = 73;
value[16] = 87;
value[17] = 93;
value[18] = 19;
value[19] = 98;
int kleinste;
for (int i = 0; i<value.length; i++)
{
kleinste = -1;
for (int j = 0; j<value.length; j++)
{
if ((value[j] >= 0) && ((kleinste == -1) (value[j] < value[kleinste])))
{
kleinste=j;
}
}
System.out.println(value[kleinste]);
value[kleinste] = -value[kleinste]-1;
}
}
}
}