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 pure java?

613


What is core java and j2ee?

581


How do you make a class immutable in java?

536


Is class a data type in java?

562


What is container-managed transaction?

653






Define connection pooling?

578


How does event listener work in java?

548


Who gave the name java?

541


What is general entity?

591


Is java a web technology?

582


Hi Friends. I want complete technical flow of j2ee project with following technologies. jsp , servlet , Struts , Hibernate , (should follow mvc-2 design pattern) . with DAO ,DTO SERVICE layers .

4473


Describe the file types *.ear, * .jar and *.war?

578


Is java important for my computer?

558


What is java actionlistener?

552


What does java awt stand for?

605