write a program, when a statement is entered, it should
display in reverse order.
Ex: Statement is "I am writing program in reverse order".
Output should be like "order reverse in program writing am I".
Answer Posted / ram shringar
public class Test {
public static void main(String abb[])throws Exception
{ int i=3;
String string[]=abb;
for(i=string.length-1;i>=0;i--)
{
System.out.print(string[i]+" ");
}
}
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Is java a web technology?
What are struts?
What is fatal error?
How does j2ee application work?
How does event listener work in java?
What is container-managed sign-on?
What is javac written?
What is distributed application?
Why is java considered dynamic?
What is java ee used for?
What is a component in java?
What is java transaction api (jta)?
How to create object without using the keyword “new” in java?
What does resource adapt module contain?
What is context root?