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
What is boolean law?
How to sort double array in java?
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
What is a instance variable?
Can an interface be final?
Is it possible to instantiate the abstract class?
What are the rules for naming an array?
What is difference between public static and void?
What are abstract classes and anonymous classes?
What does I ++ mean?
What is externalizable interface?
What is a double vs float?
What is an enumeration?
What are the default and parameterized constructors?
How to perform bubble sort in java?