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
What is locale in java?
Can you pass functions in java?
What are class types in java?
What is meant by class loader? How many types are there? When will we use them?
Explain the overview of UDP messaging.
Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx
Explain about strings in java?
Why is java so popular?
Why charat is used in java?
Can we create a constructor in abstract class?
How would you use Bubble Sort to sort the number of elements?
What is a treeset class?
Can we declare register variable as global?
What is the intersection and union methods?
Can we create a class inside a class in java?