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 this keyword in java?
How many types of string data types are there?
what are synchronized methods and synchronized statements? : Java thread
What does jre stand for?
Does java return by reference?
What is the difference between serial and throughput garbage collector?
Is minecraft java edition free?
What causes memory leaks in java?
What does sizeof return?
Name few java util classes introduced with java 8 ?
What are triggers in DB? Explain their types. How do they work?
How to create a thread in java?
Why local variables are stored in stack?
For class CFoo { }; what default methods will the compiler generate for you>?
How can we make sure main() is the last thread to finish in java program?