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
Can you start a thread twice in Java?
What is the purpose of the enableevents() method in java programming?
Difference between a class and an object?
What is the use of parse function in java?
what is anonymous class in java?
What is string manipulation?
What is an accessor?
Is space a char?
What is mutable object and immutable object?
What are the three parts of a lambda expression?
What is serial version uid and its importance in java?
What do you mean by order of precedence and associativity?
Is it possible to use string in the switch case?
Is zero a natural number?
Why is the singleton pattern considered to be an anti pattern?