Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

can you program for reverse string?

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


Please Help Members By Posting Answers For Below Questions

What types of index data structures can you have in java?

1202


What is local variable and instance variable?

1036


how to write a server program and sending the mails to the server using smtp protocol please help me

2045


What are the files generated after using IDL to java compiler?

1129


What causes memory leak in java?

917


Is string a class?

1006


Can final class have constructor?

899


Why do we need data structure in java?

1050


Explain the scope or life time of class variables or static variables?

972


Difference between this() and super() ?

1084


Do I need java on my pc?

1026


What is ‘is-a ‘ relationship in java?

999


How can a gui component handle its own events?

1084


What is difference between static class and normal class?

1097


List out benefits of object oriented programming language?

862