The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
July 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

What an superb answer

Posted by Pravin Baadshah on July 17, 2001 at 6:53 AM

Answer:
~~~~~~~
Put the entered values in an array and the copy that array into another array by using System.arraycopy( arr1, arr2 ), and then sort the first array. And for displaying the previous array show the second array. Thats all. How is it ?

Question:
~~~~~~~~~
> write a program that will allow you to enter 10 numbers from the keyboard, store them in an array, and display them in reverse order to how they were enters.





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us