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
Where are the local variables stored?
How to make object serializable in java?
Can an object be null?
Where is const variable stored?
What is method with example?
What is functional interface in javatpoint?
What is string builder in java?
How do you use substring in java?
What is an object in java and how is it created?
Write a method to check if input string is palindrome?
Can we have try without catch block?
Is hashmap thread safe?
What is the file type?
Is null a value?
I want to persist data of objects for later use. What is the best approach to do so?