Hai all
I want to print given array in reverse order Ex:
int a[]={1,2,3,4,5};display this array in reverse order.

Answer Posted / kumar

Either you can use the for loop or reverse() method to
display the results in reverse order.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is hashcode calculated in java?

734


Explain the differences between static and dynamic variables?

872


How listener identify that the event came from a particular object?

1730


what is daemon thread and which method is used to create the daemon thread? : Java thread

761


Can you make a constructor final?

800


What is indexof?

739


What do you mean by thread safe?

776


If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?

951


Which is better singleton or static class?

715


What are the different types of multitasking?

872


What does indexof mean?

730


What does a void function return?

773


How do you format in java?

787


What is this keyword used for?

886


What do you mean by data type?

793