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 / shobhit awasthi
//its code based on command line argument means u give the in run time like java "hello how r u " its convert" u r how hello" if u increase statement lenth u increase i//
class demonew
{
public static void main(String abb[])throws Exception
{ int i=3;
String string;
for(i=3;i>=0;i--)
{
string=abb[i];
System.out.println(string);
}
}
}
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is credentials?
What is a web container in j2ee?
Is java more difficult than c++?
Why java is oop language?
What is the concept of connection pooling?
Explain connector architecture.
Is core java and j2se same?
What is a java applet?
Which edition of java is used for developing web application?
What is container-managed persistence?
What is component-managed sign-on ?
Which is best eclipse for java?
What is the mvc on struts?
What do you mean by j2ee module?
Why do we use j2ee?