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 java api for xml registries (jaxr)?

729


What is the best java course?

684


What are the different java technologies?

639


What are the components of J2EE application?

719


How do you compile java?

656






What is component contract?

681


On which platform j2ee is based?

695


What spring is in related to j2ee?

708


Which server is best for java?

633


Is java important for my computer?

639


What is java ee architecture?

645


Explain the j2ee tiers.

637


what is interface in java ?can you explain with simple example?and what is the difference between abstract and interface?

2248


What is a thin client?

719


What is container-managed sign-on?

719