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 types of index data structures can you have in java?
What is local variable and instance variable?
how to write a server program and sending the mails to the server using smtp protocol please help me
What are the files generated after using IDL to java compiler?
What causes memory leak in java?
Is string a class?
Can final class have constructor?
Why do we need data structure in java?
Explain the scope or life time of class variables or static variables?
Difference between this() and super() ?
Do I need java on my pc?
What is ‘is-a ‘ relationship in java?
How can a gui component handle its own events?
What is difference between static class and normal class?
List out benefits of object oriented programming language?