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 an example of declaration?
What is an example of a keyword?
How to make a class or a bean serializable?
Can you declare a private method as static?
Why static functions are used?
What is classname class in java?
what is deadlock? : Java thread
Why java is platform independent? Explain.
What does the string method compareto () do?
Is it compulsory for a try block to be followed by a catch block in java for exception handling?
Can you have two constructors in java?
What is supplier in java?
What do you mean by global variable?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
Can we use this () and super () in a method?