"SOrt an array in reverse order without taking any other array or any standard JAVA API's"
"SOrt an array in reverse order without taking any other array or any standard JAVA API's"
The Best way to predict your future is to create it - Every great individual common man
You down with OOP? Yeah you know me!
You down with OOP? Yeah you know me!
its very easy really, I had a pretty hard time too when i first had to do
this.
hope this helps..
-Justin-
Sort an array in reverse order without taking any other array or any standard JAVA API's
the very first one you had would've worked...
but you have to do a for loop to print out each char in the array..
like
for (int i=0; i<arr.length; i++)
{
System.out.print(arr[i]);
}
oh yeah, and putt the int j = arr.length in the for loop right after
int i = 0;
-Justin-
Sort an array in reverse order without taking any other array or any standard JAVA API's
You down with OOP? Yeah you know me!
Sort an array in reverse order without taking any other array or any standard JAVA API's
With Best Regards,
Shyam Prasad Murarka
You down with OOP? Yeah you know me!
You down with OOP? Yeah you know me!
Originally posted by Justin Fox:
use a selection sort.
Originally posted by Jody Brown:
His a quick sort solution possible without maintaining two temporary lists or arrays?
You down with OOP? Yeah you know me!
The Best way to predict your future is to create it - Every great individual common man