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

Where are the local variables stored?

1070


How to make object serializable in java?

971


Can an object be null?

958


Where is const variable stored?

930


What is method with example?

1103


What is functional interface in javatpoint?

1043


What is string builder in java?

1006


How do you use substring in java?

1126


What is an object in java and how is it created?

1050


Write a method to check if input string is palindrome?

1018


Can we have try without catch block?

1071


Is hashmap thread safe?

977


What is the file type?

1015


Is null a value?

1028


I want to persist data of objects for later use. What is the best approach to do so?

1048