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 the difference between variable & constant?
Explain about core java?
Tell us something about an iterator.
What is the benefit of inner / nested classes ?
What is api in java?
What is the purpose of format function?
What is e java?
Differentiate between a constructor and a method? Can we mark constructors final?
Is it possible for a yielded thread to get chance for its execution again?
What does the append?
Are variables stored in ram?
Does java have extension methods?
What is the most important feature of java? What is an interface?
Which package has light weight components?
Why do we override tostring method in java?