Answer Posted / pratyush kumar nayak
String Original,Reverse="";
System.out.println("Enter String To Reverse");
Scanner sc=new Scanner(System.in);
Original=sc.nextLine();
int length=Original.length();
for(int i=length-1;i>=0;i--){
Reverse=Reverse+Original.charAt(i);
}
System.out.println("The Reversed String is " + Reverse);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you define a parameter?
What is a values collection view ?
What is math floor in java?
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..
What is an escape character in java?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
What are basic data types?
How many bytes is string in java?
What is mysql driver class name?
what are Hostile Applets?
Enlist few advantages of inheritance?
What are the restrictions that are applied to the java static methods?
what is singleton class in java?
What is purpose of find feature?
What are the types of web technologies?