Answer Posted / haneef
public class Main {
public static void main(String[] args)
{
String str1="HANEEF";
for(int i=str1.length();i>0;i--)
{
System.out.print(str1.charAt(i-1));
}
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is substring 1 in java?
What are the two ways of implementing multi-threading in java?
What is the purpose of using break in each case of switch statement?
What is package protected in java?
What is regex in java?
What is int short for?
Explain the difference between jdk, jre, and jvm?
What are different data structures in java?
Explain abstract class in java?
What is a singleton in genetics?
What are user defined exceptions?
How does arrays sort work in java?
Is string is a data type?
What language is pass by reference?
Explain java coding standards for constants?