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 java 2 platform, standard edition (j2se)?
What is callback methods Component methods called by the container to notify the component of important events in its life cycle?
What is java used for in technology?
What are container services?
What are the components of j2ee applications?
What are the advantages of object-relational mapping (orm)?
What is the container?
Is j2ee a framework?
What are the different java technologies?
what is direct link to download swing ebook,applet,ejb,core java
Which server is best for java?
What is java ee used for?
What is multi tier architecture in j2ee?
Which java ide is best?
Is a relationship java?