writing aprogram

writing aprogram

Write a program to reverse any string
View Answers

May 27, 2010 at 2:53 PM

Hi Friend,

Try the following code:

import java.util.*;
class StringReverse{
public static void main(String[]args){
Scanner input=new Scanner(System.in);
System.out.println("Enter string:");
String st=input.nextLine();
StringBuffer buffer = new StringBuffer(st);
String reverseString=buffer.reverse().toString();
System.out.println("Reversed String: "+reverseString);
}
}

For more information, visit the following link:

http://www.roseindia.net/java/beginners/StringReverseUsingStringUtils.shtml

Thanks









Related Tutorials/Questions & Answers:
writing aprogram - Java Beginners
writing aprogram  Write a program to reverse any string  Hi Friend, Try the following code: import java.util.*; class StringReverse{ public static void main(String[]args){ Scanner input=new Scanner(System.in
write aprogram which shows the use of hashset and iterator (through enter the value through keyboard )
write aprogram which shows the use of hashset and iterator (through enter the value through keyboard )  write aprogram which shows the use of hashset and iterator (through enter the value through keyboard
Advertisements
writing characters
writing characters  how to write a group of characters to a string ... i mean for writing single character using charAt in java
Ghost Writing
Ghost Writing Ghost Writing is the kind of writing when someone... of writing it. So ghostwriter is a person who works behind the scene on a writing project in return of certain amount. The write-ups of the writer
Blog Writing
Blog Writing A blog, the short form of web log is an online user... on that. But the professionals are a better choice for writing the blog for commercial or promotional purpose. We provides the services of writing blogs for the commercial
Writing Actions
Writing Actions The Action is responsible for controlling of data flow within an application. You can make any java class as action. But struts have some built in interface and class for making action easily. To make an Action class
dynamically writing text javascript
dynamically writing text javascript  dynamically writing text javascript. Is it possible
dynamically writing text javascript
dynamically writing text javascript  dynamically writing text javascript. Is it possible
writing HTML entirely by hand
writing HTML entirely by hand  How comfortable are you with writing HTML entirely by hand
writing plugin - WebSevices
writing plugin  can anyone help me in writing plugin for internet explorer browser using c++ in .net environment
Web Writing
Web Writing       The art of writing for the web is far removed from writing for the print world.... Following is the prime aspect you need to keep in mind while writing for the web
SEO Writing
SEM and SEO Article Writing SEM and SEO article helps your business to grow... the intended traffic through SEM and SEO article writing in addition to other tools... is the demand of SEM and SEO article writing services. A good command over
writing webservices in php
writing webservices in php  How to write a simple web service in PHP
question "writing prog"
question "writing prog"  Hello I want helping for this question, please Write a program that reads some friendsâ?? names, stores them in an array, and then prints out on the screen all friends who start by a particular letter
writing a code - Java Beginners
writing a code  write a code for a class called display that will display your name and age onto the screen  Hi Friend, Try the following code: class display{ String name; int age; public display(String n,int
Image writing over URLConnection
Image writing over URLConnection  Hello, I am trying to write... problems trying to write an image I have succeeded in writing to the local HD using.... The problem is that when writing by ImageIO on URL what will the name of the file
File saving and Writing
File saving and Writing   Hello Rose india..... I have a doubt for you plzzz kindly Help me... I have an "Arraylist" which includes some table values... What i want to ask is "I want to create a jsp page which will include
Writing a trigger for an userdefined datatype
Writing a trigger for an userdefined datatype  i have a user defined datatype in EMP table like COLUMNNAME:ADDRS_TYPE where ADDRS_TYPE have the following columns DATATYPE :ADDRESS VARCHAR2(136) V_CODE VARCHAR2(8) T_CODE
writing programs - Java Beginners
writing programs  1.write a program to display odd numbers from 1-50. 2.And Write a program to find the facorial of a number  Hi Friend, 1) class OddNumbers{ public static void main (String args
freelance writing jobs
of writing content for web & print media.  To work in a team
ModuleNotFoundError: No module named 'writing_style'
ModuleNotFoundError: No module named 'writing_style'  Hi, My... 'writing_style' How to remove the ModuleNotFoundError: No module named 'writing_style' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'writing_style'
ModuleNotFoundError: No module named 'writing_style'  Hi, My... 'writing_style' How to remove the ModuleNotFoundError: No module named 'writing_style' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'writing_style'
ModuleNotFoundError: No module named 'writing_style'  Hi, My... 'writing_style' How to remove the ModuleNotFoundError: No module named 'writing_style' error? Thanks   Hi, In your python
Articles Writing,Articles Writing Services,Articles Writing India,Articles Writing & Content Development
Articles Writing and Content Development In web medium, content... be readable by all. As far as writing an article is concerned, then it becomes... and understandable by all in general. Article writing is the driving force of your
Writing and Reading A File
Writing and Reading A File  Hello, I've been trying to learn writing and reading data from file for our assignment, but just stuck on how to proceed. Our assignment requires us to make an application to read and write customer
writing program - Java Beginners
writing program  WAP to input Name of Cricketer, Number of matches, total runs scored for 250 players from the user and print data in descending order of their average runs using bubble sort. Average runs=total runs divided
writing and appending to a file
writing and appending to a file  My input file includes data from both males and females. My code below replaces a 'male string' with the key and values and writes into an existing file for 'male'. How can I do the same
Book Writing
Book Writing We have been providing exceptional writing solutions to a diverse range of clients across the world. So if you are proficient in thinking than writing, or if you are just short
Book Writing
Book Writing Book Writing... story told? We know that writing a book is not everyone's cup of tea... partner to give a professional support for your book writing
Jave writing method - Java Beginners
Jave writing method   HI! i'll really apprecite if anyone can help me...! Implement a method named posNeg that accepts 3 integer parameters..., 19 then the method will return 1. Implement a method named order
Writing for the Purpose of Reading
Writing for the Purpose of Reading   ... disoriented. - The advantage of web writing is that a greater number of lists... by users as promotional writing styles and boastful claims which seem
writing angularjs hello world program
writing angularjs hello world program  Hi, I just started to learn the AngularJS framework. I want to learn it fast and looking for easy to learn... World program in AngularJS. Searching for simple example for writing angularjs
Reading and Writing files - Java Beginners
Reading and Writing files  Hello, please help me to Develop a simple Java application that, when run, Welcomes the users and tells them the name... to investigate writing to files a little (can be also done using Properties
Content Writing Job
Content Writing Job       In the field of Content writing it is very important that the candidate have a genuine interest in making a career in copywriting/content writing
Everything about Web Writing
Everything about Web Writing       Writing for the Web The art of writing for the web is far removed from writing for the print world. The usability of the website can
Freelance Writing as a Career
Freelance Writing as a Career Pen has a great power of its own and its... and journalists. Freelance Writing – What Is Required? Choosing freelance writing as a career seems to be an extremely easy way of making bucks
help on writing a javascript - Java Beginners
help on writing a javascript  really have no idea on how to write it if some 1 could help out it would be great of you. thanks in advance...?? 60 D : 0 â?? 40 3. Write a JavaScript program to take as input three
Speech Writing Services,Business Speech Writing,Speech Writing Outsoucing India,Affordable Speech Writing Services
Speech Writing Speech Writing Business owners are often called upon to give speeches, chair meetings and give presentations. Public
Technical Writing
Technical Writing Do you know who writes the user manuals of various products.... As numerous gizmos and gadgets are being introduced every day, the technical writing... thing is that a technical writer should have excellent writing skills and a rare
writing java programs - Java Beginners
writing java programs  How do i write a code to display even numbers from 1 to 50  Hi Friend, Try the following code: class EvenNumbers{ public static void main (String args[]){ String evenNo
frame with title free hand writing
frame with title free hand writing  create frame with title free hand writing, when we drag the mouse the path of mouse pointer must draw line ao arc   Hi Friend, Please visit the following link:ADS_TO_REPLACE_1 http
writing program in bluej - Java Beginners
writing program in bluej  How to write the program on follwing WAP to inpout a string and print Input : I stidied Hard   Hi Friend, Try the following: import java.util.*; public class UserInput{ public
Writing a loop statement using Netbean
Writing a loop statement using Netbean  Write a loop program using NetBeans.   Java Loops class Loops{ public static void main(String[] args){ int sum=0; for(int i=1;i<=10;i
Facts about Web Writing
Facts about Web Writing      ... are writing for. The most important ones are as follows- A majority of the users... of writing guidelines reduces the cognitive load of the users and as a result
Children's Writing
Article Writing for Children Future lies in hands of Children or a child... on what should be the content while writing articles for children. Do we understand.... In this environment writing articles for children is more of a task of responsibility
writing in Excek sheet - JSP-Servlet
writing in Excek sheet  Hello Dear sir, i got one scenario where i have to pick the data of the student like id , name , class , age & address from jsp & then i have to store these data into Excel Sheet
Frameworks and example source for writing a JDBC driver.
Frameworks and example source for writing a JDBC driver.  Where can I find info, frameworks and example source for writing a JDBC driver
Freelance Writing as a Career Option
Freelance Writing as a Career Option W. Somerset Maugham once said that writing is more a necessity than a desire for him. This thought holds true... are an integral part of the life of a writer. Freelance writing is an extremely flexible
Five Reasons for Outsourcing Business Writing
Five Reasons for Outsourcing Business Writing One may possess excellent skills for initiating and running a writing business but this does not mean that their write-ups are also excellent. Outsourcing business writing is probably the best
Writing Great Articles is Difficult
Writing Great Articles is Difficult     ... never be ignored while writing articles, either by some ?ghost writer' or by you..., it will always be worthwhile. By writing individual articles about the benefits

Ads