Answer Posted / suresh
class suresh
{
public static void main(String args[])
{
String s="sureshreddy";
for(i=s.length()-1;i>=0;i--)
{
System.out.println(s.charAt(i));
System.out.println(s.length());//it wil print the length
}
}
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the right data type to represent a price in java?
What is meant by design patterns?
what is meant by abstract class?
What about static nested classes in java?
What is import java util arraylist?
How does multithreading take place on a computer with a single cpu?
Implement a stack with push (), pop() and min() in O(1) time.
Does string is thread-safe in java?
what is meant by HQL?
Difference between this() and super() ?
Where import statement is used in a java program?
Why generics are used in java?
Where are variables stored?
What is javac used for?
What does g mean in regex?