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

What are the advantages of packages in java?

1430


Is hashset ordered?

980


What does replaceall do in java?

869


What is java util collection?

999


Why java is object oriented?

963


What is treeset in java?

941


What is meant by tab pans?

1132


Which of the following is not an isolation level in the JDBC

2074


Can inner class final?

1046


Does chrome use java?

909


When can we say that threads are not lightweight process in java?

1077


What are memory tables?

1053


What is the difference between array and array list in java?

1139


What is map and hashmap in java?

1026


What is difference between jdk,jre and jvm?

1047