How can you reverse a string?

Answer Posted / venki from hyd

class ReverseString
{
static String name="Hello";
public static void main(String args[])
{
String rname;
for(int i=name.length(); i<0; i--)
{
rname=name.charAt(i);

}
System.out.println(rname);

}

}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are global variables initialized to zero?

507


Write a factorial program using recursion in java?

512


Can we convert list to set in java?

509


Is java map thread safe?

490


How we can declare a static variable?

650






What is finalize()?

604


List the interfaces which extends collection interface?

533


What is main in java?

506


What is use of super keyword in java?

594


What is an interface in java?

559


Why do we need variables?

530


List any five features of java?

565


What is boolean strategy?

622


What is an interoperable application in java ?

581


What is a final class ?

601