Answer Posted / soumya roy
public class rev
{
public static void main(String[] args)
{
String str="hi my name is hello ";
System.out.println("the string is :" + str);
char[] ch=str.toCharArray();
int i;
int len = ch.length;
for(i=len-1;i>=0;i--)
{
System.out.print(ch[i]);
}
}
}
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What happens if we override private method?
Explain how hashmap works?
Highest level event class of the event-delegation model?
What is the purpose of extern variable?
How do you sort arrays in java?
What is the public method modifier?
Why pointers are not used in java?
What is the purpose of using javap?
What are methods in java?
Why parameters should be passed by reference?
How do you allocate memory to object?
What is binary search in java?
What is array command?
What are the differences between Java 1.0 and Java 2.0?
what is recursion in java