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
Where javac is located?
What are the modules of j2ee?
What is the description for expression element?
What is conversational state?
What is meant by j2ee?
What is a thin client?
What is component-managed sign-on ?
What is multi tier architecture in j2ee?
what is direct link to download swing ebook,applet,ejb,core java
What is empty tag?
What is java awt event?
What is repaint in java?
How many types of modules is defined by j2ee specification?
What is a java application client?
What is declarative security ?