Originally posted by yuvraj kotegar:
i only now know is that i enter command line arguments which are integers and program is printing in the same order. what i want is to print in ascending order.
so how to modify this??
JavaRanch is a learning site. It is against policy to do someone's homework. We can give you hints when you run into issues, but you must start it, and you must actually do most of the work.
So, what have you attempted so far? And if you have not, where would be the best place to start? Meaning what codes do you think you would need?
but how do i give the size here?? i mean i dont know how many values i am entering in command line!!
You do know that you are asking the next questions already. You can actually ask yourself the question and figure it out -- or you can wait for me to parrot you...
Anyway... how do you figure out how many parameters are entered in the command line?
And please indent code inside the code tags (better to use ctrl-c ctrl-v) because it makes it easier to read; I shall edit your last post so you can see the difference.