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 do you understand by actionform?
What is application configuration resource file?
What is application client?
What is home handle?
What is the name of java compiler?
Where javac is located?
What is javabeans component?
What is event handling in java?
whay java does not support bass by reference
What is conversational state?
What is the concept of connection pooling?
Why java is not 100% object oriented language?
What is the difference between session bean and entity bean ?
What is cascade delete?
What is j2ee stack?