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

Why is java so important?

1124


What are inbuilt functions in java?

1086


What is a short in java?

1045


What are the three parts of a lambda expression? What is the type of lambda expression?

1033


What are meta-annotations?

992


Explain about the main() method in java?

1110


What is the public method modifier?

1014


What is a substitution variable?

1029


Can inner class be public in java?

1016


How many static init can you have?

1216


Can we have multiple public classes in a java source file?

1192


When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?

1064


What is the use of arraylist in java?

1092


How to split a string in java?

1131


What is json parser in java?

1058