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 is map in java?

966


What is java used for on a computer?

949


Can one thread block the other thread?

995


what is the final keyword denotes in java?

1044


How do you replace a string in java?

970


Difference between method overloading and method overriding in java ?

1048


What java is used for?

1038


What is a linkedhashmap java?

966


Which java ide is used the most?

975


What is an example of a constant variable?

1044


What are the characteristics of Final,Finally and Finalize keywords.

1137


How are the elements of a gridbaglayout organized in java programming?

952


Why is java multithreaded?

949


What is the type of lambda expression?

978


Is hashmap thread safe?

951