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 java ee architecture?
What is the difference between session bean and entity bean ?
What is core java and j2ee?
What are the tools in java?
What is deployer?
What is component contract?
What is j2ee application?
What are the components and containers in java?
What is gridlayout in java?
Is string a primitive data type in java?
What is japplet in java?
What is caller?
What is j2ee application model?
Is j2ee a programming language?
How many java languages are there?