Answer Posted / haneef
public class Main {
public static void main(String[] args)
{
String str1="HANEEF";
for(int i=str1.length();i>0;i--)
{
System.out.print(str1.charAt(i-1));
}
}
}
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between iterator and list iterator?
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?
Can we have a method name same as class name in java?
How do you sort a list in java?
What is a treeset in java?
who can i handle multiple client in RMI
What are examples of modifiers?
What are encapsulation, inheritance and polymorphism?
Can we override the overloaded method?
What is Session reduplication and how its done?
Why enumeration is faster than iterator?
What is a protected void?
Can we declare main () method as non static?
What is currentthread()?
Which collection is thread safe in java?