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
What is a plugin in java?
What is empty tag?
What is java awt event?
What is java api for xml-based rpc (jax-rpc)?
What is j2ee component?
What is j2ee module?
What is j2ee product?
What is a panel java?
What is java web technologies?
Is string an object in java?
What is the build file?
What is entity reference?
What is java developer?
What is java api for xml registries (jaxr)?
What is multi tier architecture in j2ee?