Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Can you start a thread twice in Java?

1171


What is the purpose of the enableevents() method in java programming?

1273


Difference between a class and an object?

1111


What is the use of parse function in java?

1046


what is anonymous class in java?

1089


What is string manipulation?

1063


What is an accessor?

1766


Is space a char?

986


What is mutable object and immutable object?

1177


What are the three parts of a lambda expression?

1063


What is serial version uid and its importance in java?

1092


What do you mean by order of precedence and associativity?

996


Is it possible to use string in the switch case?

1101


Is zero a natural number?

1101


Why is the singleton pattern considered to be an anti pattern?

945