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.
Answers were Sorted based on User's Feedback
Answer / nagesh
for(int i=a.length-1;i>=0;i--){
System.out.println(a[i])
}
| Is This Answer Correct ? | 9 Yes | 1 No |
hai kumar you r wrong
with use of loop only we can reverse...
we can't do it with reverse() method b'coz this is not String Type....
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / kumar
Either you can use the for loop or reverse() method to
display the results in reverse order.
| Is This Answer Correct ? | 1 Yes | 2 No |
write a program to create an vector with string(add,remove) operation.and value should be enter through keyboard.
How to check if linked list contains loop in java?
What access modifiers can be used for variables?
What is the use of static methods?
What is class forname used for?
Name the package that most of the AWT events that supports event-delegation model are defined?
What is static variable with example?
What is == mean?
How do we access static members in java?
what do you meant by Runtime Polymorphism?
13 Answers BVIMR, IBM, Persistent,
what is platform
difference throws and throw in java