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 is the file extension for java?

1076


Is zero a positive integer?

1070


Name some OOPS Concepts in Java?

1078


Define an applet in java?

1166


What is the r character?

1020


Is minecraft java edition free?

1125


What is purpose of find feature?

1083


what are different ways in which a thread can enter the waiting state? : Java thread

969


Is static a singleton?

982


What is prefix of a string?

1041


what is the purpose of "virtual"?

1087


What is function declaration?

969


Is stringwriter thread safe?

1002


What is object cloning in Java?

1113


Do we have pointers in java?

995