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 javabeans component?
What is difference between java and core?
What is java technology stack?
What is core java and j2ee?
Which compiler is used in java?
What are the technologies a java developer must know?
Why java is oop language?
What is multi tier architecture in j2ee?
What is authorization constraint?
How will you explain cdata?
Define the struts in the j2ee framework?
What is element?
What is j2ee stack?
How many types of modules is defined by j2ee specification?
What is java api for xml registries (jaxr)?