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 is a method in programming?
Is nullpointerexception checked or unchecked?
What is difference between classpath and path variables in java?
What is the independent variable in an experiment?
Can we override singleton class?
Define nashorn in java8.
How many ways can you break a singleton class in java?
What is qms certification?
What is the use of optional ?
Are generics important java?
Explain how can you debug the Java code?
Explain naming conventions for packages?
What is visibility mode?
What is the benefit of inner / nested classes ?
What are the elements of java?