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 / ram shringar

public class Test {
public static void main(String abb[])throws Exception
{ int i=3;
String string[]=abb;
for(i=string.length-1;i>=0;i--)
{
System.out.print(string[i]+" ");
}
}
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the four components of j2ee application?

566


Is downloading java safe?

479


What do you understand by connector? Explain connector architecture.

501


How java is reliable?

489


What is DDP?

547






What is entity reference?

512


What is java application server?

486


What is java developer?

478


What should a junior java developer know?

483


What is a jbutton in java?

524


What is actionerrors?

528


What is jetty in java?

516


J2ee is a container centric architecture. Explain.

522


What does the application client module contain?

502


What is j2ee explain the component of j2ee application?

450