Counting sort in java with final array how? without no duplication?

after conrting for example the data is in the from of:1, 1, 12, 23, 15, 15, 15, 45, 45 ,13so how it arrange in final array(and # if 15 is repeate 2 time)plz can any body help me
[205 byte] By [Maan_PUCITa] at [2007-10-2 20:48:50]
# 1

int Comparing = 0;

while (Comparing < Cells.length)

{

int BeingCompared = 0;

while (BeingCompared < Cells.length)

{

if ((Cells [Comparing] < Cells [BeingCompared])

{

int First = Cells [Comparing];

int Second = Cells [BeingCompared];

Cells [Comparing] = Second);

Cells [BeingCompared] = First;

}

BeingCompared = BeingCompared + 1;

}

Comparing = Comparing + 1;

}

agentsteala at 2007-7-13 23:32:50 > top of Java-index,Other Topics,Algorithms...
# 2
@OP: Could you explain your question a bit more detailed?
prometheuzza at 2007-7-13 23:32:50 > top of Java-index,Other Topics,Algorithms...
# 3

> int Comparing = 0;

> while (Comparing < Cells.length)

> ...

>Comparing = Comparing + 1;

I doubt that it is in the OP's best interest to post code that is

uncommented (not explained) to him/her, especially code

that will not compile.

prometheuzza at 2007-7-13 23:32:50 > top of Java-index,Other Topics,Algorithms...
# 4
Oh and agensteal, you might want to read through the code conventions for the Java programming language: http://java.sun.com/docs/codeconv/
prometheuzza at 2007-7-13 23:32:50 > top of Java-index,Other Topics,Algorithms...