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


Please Help Members By Posting Answers For Below Questions

What is commit?

633


Enlist the technologies embraced in j2ee?

525


Who generates bytecode in java?

504


What is javamail?

527


Is j2ee a programming language?

528






What is a panel java?

550


How many java languages are there?

494


What is containers in java?

440


Who is java developer?

516


What is the difference between java and core java?

482


What is a thin client?

572


What is 2 stands for in j2ee?

516


What is build file?

521


What does resource adapt module contain?

527


Which is best eclipse for java?

483