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
What is map in java?
What is java used for on a computer?
Can one thread block the other thread?
what is the final keyword denotes in java?
How do you replace a string in java?
Difference between method overloading and method overriding in java ?
What java is used for?
What is a linkedhashmap java?
Which java ide is used the most?
What is an example of a constant variable?
What are the characteristics of Final,Finally and Finalize keywords.
How are the elements of a gridbaglayout organized in java programming?
Why is java multithreaded?
What is the type of lambda expression?
Is hashmap thread safe?