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


Please Help Members By Posting Answers For Below Questions

What is the difference between a checked and an unchecked exception?

543


What do you mean by flow of struts?

741


Why is logger singleton?

561


Name four container classes.

552


What is bufferedwriter?

540






What does string intern() method do?

585


Which is better singleton or static class?

501


What is a singleton puppy?

524


What is java ceil?

566


How many bytes are a float?

501


What is the purpose of a volatile variable?

548


What is empty list in java?

619


Can a class have more than one object?

521


How does thread synchronization occurs inside a monitor?

544


What is a condition in programming?

552