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
How can we create an immutable class in java?
which pattern is default in scanner package?
What will be the output of round(3.7) and ceil(3.7)?
What is super in java?
What is data member in java?
Can we define private and protected modifiers for variables in interfaces?
How do you sort a list in java?
Does java runtime require a license?
How to change the priority of thread or how to set the priority of thread?
What is a method signature java?
Can we compare two strings in java?
How can you make a class serializable in java?
Difference between process and thread?
What do you mean by append?
What is substring in java?