I have asked this question before and have not gotten a completely useful answer. I am trying to sort a number of any size. For example: if 643597 is entered, the output should be 345679.

>>I have asked this question before and have not gotten a completely useful answer.

I saw your previous post, and also the answers to that post. There were some useful ideas, that you could apply - store each digit in an array; as long as you use int values, the size of your array will not be bigger than 10...etc, etc...

this is jst my quiz in the class today.. by using 2 loop and swap the lower number ...

int a[arraysize],hold
.
.
.
for (i=0;i<arraysize-1;i++)
for (j=0; j<arraysize-1;j++)
if (a>a[i+1])
{ hold = a;
a=a[i+1];
a[i+1]=hold;
}

I have asked this question before and have not gotten a completely useful answer. I am trying to sort a number of any size. For example: if 643597 is entered, the output should be 345679.

So I am having trouble knowing what to return in the bottom method any help would be appreciated .
Here are the specifications for completing the StringArray class: