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 / nagesh
for(int i=a.length-1;i>=0;i--){
System.out.println(a[i])
}
Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What are methods?
What is meant by data hiding in java?
What are the two types of streams offered by java 8?
What is difference between array and vector?
What do you understand by access specifiers in Java?
Differentiate between a constructor and a method? Can we mark constructors final?
How do you create a null object?
What is the use of protected in java?
What is an interface in java?
What is complexity and its types?
Explain when noclassdeffounderror will be raised ?
What is collection sort in java?
Why java strings are immutable in nature?
What is the difference between private & public & friendly classes?
How do you remove all elements from an arraylist in java?