Regarding core java

Regarding core java

how do we find reverse of string with out using String functions

View Answers

July 24, 2013 at 3:35 PM

Please go through the link, may this will be helpful for you.

http://www.roseindia.net/java/beginners/reverse-string-program-in-java.shtml


July 30, 2013 at 5:16 PM

Using character array and for loop, we can iterate each character of the string and reverse the value.

Like:

for ( int i = str.length - 1 ; i >= 0 ; i-- )

       reverseValue = reverseValue + str.charAt(i);

Hope this will helps.

Regards

Alok









Related Tutorials/Questions & Answers:
Regarding core java
Regarding core java  how do we find reverse of string with out using String functions
regarding java - JDBC
regarding java  i am making a project on supply chain system i have done front end work using swing and AWT concepts of java i am using mysql as back end and i have also configured java with mysql i am using three table
Advertisements
regarding interview in java
regarding interview in java  why java doesnot suppor muliple inheritance   Java does not support multiple inheritance directly... it will take.It creates complexity.Therefore java does not support it directly
regarding j2me - Java Beginners
regarding j2me  sir but i have to use the drawString u tell me how can i display two too long strings
Regarding path settings in java
Regarding path settings in java  Hello I had a problem of setting paths in Java.I setted classpath(C:\java\j2sdk1.4.2\lib) and path(c:\java\j2sdk1.4.2\bin) in system variables. But when i compile simple java progrm
regarding applets - Java Beginners
regarding applets  sir can you please tell how one applet can send request to another say i want to send some information   Hi friend.../java/example/java/awt/ Thanks. Amardeep
Regarding Exception - Java Beginners
Regarding Exception  1.Where and when can we use IllegalArgumentException? 2.What is the difference between fillInStackTrace and printStackTrace ? In which cases they can be used?  Hi friend, public class
regarding java package - Java Beginners
regarding java package  can you provide tutorial for java.sql package please help  Hi friend, I am sending you a link. This link will help you. Please visit for more information. http://www.roseindia.net
Regarding Java Framework - Java Beginners
Regarding Java Framework  What is a frame work.  Hi Friend, A framework may be for a set of functions within a system and how they interrelate; the layers of an operating system; the layers of an application
regarding java files genarated by jsp
regarding java files genarated by jsp  Hi,... I'm running a project...: 233 in the generated java file Syntax error, insert "}" to complete Block" Where to find the genarated java file??? Thank u in advance
Doubts regarding Hashtable - Java Beginners
Doubts regarding Hashtable  Hi, I am new to hashtable.Is it possible to create a hashtable like this? java.util.Hashtable hashtable=new... information, http://www.roseindia.net/java/example/java/util/ Thanks
problem regarding autoboxing - Java Beginners
problem regarding autoboxing    hello all , i have a problem regarding autoboxing Integer i = 127; Integer j = 127...://www.roseindia.net/java/ Thanks. Amardeep
Regarding a project in java - JSP-Servlet
Regarding a project in java  am doing a project on Tiny ETL(Extract Transform and Load), using jsp-servlets. Can u help me out by giving some suggestions or material to follow. It is based on datawarehousing.   Hi
regarding login.jsp code - Java Beginners
regarding login.jsp code  i tried to implement the login.jsp code example given in roseindia.net. but it is saying invalid loginbean. after compilation. can any pls send me the correct code that implements the login with jsp
regarding oops - Java Interview Questions
regarding oops  what is the differences between web server and application server?   Hi Friend, Difference between Web Server and Application Server: 1)Web server handles only Http requests where as Application
regarding object references - Java Interview Questions
regarding object references  How can we find the number of instances created to an object in java? Write a program for this?  Hi Friend, Try the following code: class Example { static int ob = 0; public Example
Regarding Date Format - Java Server Faces Questions
Regarding Date Format  How I can convert this(18-Aug-08) date format to Gregorian calendar date format?plz send me the syntax and code plz!!  hai,, http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f
regarding rev
regarding rev  write a prog. in java that display all the arguments passed at the command line in reverse order
Regarding My 3rd Question in Java - Swing AWT
Regarding My 3rd Question in Java  sir in Netbeans By default JTable Columns will appear Horizontal like Title1 Title2 Title3 Title4 in below these our data will appear so my question that is there any method
Regarding Gantt chart generation - Java Beginners
Regarding Gantt chart generation  how to generate a jdbc gantt chart using jfreechart api in netbeans simple java application?  Hi Friend, To create a simple Gantt chart, try the following code: import
Regarding Project
Regarding Project  sir, i am doing a project in java. my project is CITY GUIDE it is an web application. please give me documentation of my project
Regarding Project
Regarding Project  sir, i am doing a project in java. my project is CITY GUIDE it is an web application. please give me documentation of my project
regarding jdbc - JDBC
regarding jdbc  how i can configure java with ms access
Doubt Regarding Charts
Doubt Regarding Charts  Hi, Can you please help me out by answering "hoe to include charts in core java code and struts code" thanks in advance, Swaroop Eswara   Please visit the following link: Jfreechart
Regarding repository
Regarding repository  How to check in and check out using SVN repository using eclipse
Regarding Datasource
Regarding Datasource  Hi friend, Good morning,how r u,i want to share 1 information to u,I got a job in VERIZON DATA SERVICES INDIA PVT.LTD,u help... in this company,Thanks a lot to provide help.presently my domain is java,I am using
Regarding project - Applet
Regarding project  hi friend , iam doing project in Visual cryptography in Java so i need the Help regarding how to make a share of a original imahe into shares anu
Regarding Hibernate
Regarding Hibernate  Both JDBC and Hibernate are used to connect to database then whats the need of going to hibernate? What are the main differences? And could you let me know please
Regarding GUI Applications
Regarding GUI Applications  How to create a save and open jmenu item in java desktop application
regarding project
regarding project  OBJECTIVES OF THIS PROJECT: -Ability to test... solution quickly. PROJECT NAME: DID I WRITE A GOOD JAVA PROGRAM?(JAVA/MVC/UI... of the following: The java code class and package(either the exact file path
regarding project
regarding project  OBJECTIVES OF THIS PROJECT: -Ability to test... and come up with combined solution quickly. PROJECT NAME: DID I WRITE A GOOD JAVA PROGRAM?(JAVA/MVC/UI) BRIEF DESCRIPTION OF A PROJECT: The program helps
Regarding javascript
Regarding javascript  Hi, I want 4 upload buttons in HTML CODE and Among 4 browse buttons user is not selected any one then provide a prompt message like plz select any 1 file among 4 buttons.If user is selected either 1st
regarding project
regarding project   sir we need help about project. we have idea... JAVA PROGRAM?(JAVA/MVC/UI) BRIEF DESCRIPTION OF A PROJECT: The program helps...: The java code class and package(either the exact file path or the jar file containing
regarding jtable...
regarding jtable...  sir, im working with jtables. i wanted to populate a jtable from the database and when i click any row it should add a container below that row itself and show the required details of the row
Regarding Documentation of Packages
Regarding Documentation of Packages  Hello How to get java packages ie documentation of classes ,Interfaces and methods from windows command prompt.In the sense Java.lang,java.awt,java.math etc
Query regarding JSP, JDBC
Query regarding JSP, JDBC  can I get the code for the question asked by me regarding JSP,JDBC
regarding web.xml - JSP-Servlet
regarding web.xml  I am the java beginner, please send the web.xml code and how to run a servlet for apache5.0.... my problem is in tomcat manager am getting the message 'fail' in web.xml  Hello,Please check the tomcat
want help regarding a project
want help regarding a project  hiii this is hemangi and I want guidance that I am working on a project of hospital management system so I want... inbuilt report and all facility available in java
Regarding weblogic portal
Regarding weblogic portal  Hi, My name is Ramanuja.i am working on weblogic portal.if u know any info regarding plz provide the materials or information to me.plz help me. Thanks in advance
Regarding Documentation of API
Regarding Documentation of API  Hello How to get java documentation of classes ,Interfaces and methods from windows command prompt.In the sense... the following command: javap java.[packagename].[classname] eg, javap
Regarding Documentation of API
Regarding Documentation of API  Hello How to get java documentation of classes ,Interfaces and methods from windows command prompt.In the sense....   Give the following command: javap java.[packagename].[classname] eg
Doubt regarding charts and jsp
Doubt regarding charts and jsp  Hi, I successfully executed the bar chart in normal java application. But I want the Bar Chart to be executed... java application output to an jsp page? thanks in advance   Put the jar
Regarding one business scenario
Regarding one business scenario  Ya actually i have a requirement which is I have four questions 1.DOB... Java And how to integrate java application to jsp page
Query regarding JSP, JDBC
Query regarding JSP, JDBC  I have a table in SQL Server database storing some ids and names. In my jsp code a while loop is displaying the list... or hashmap in java
regarding JTable - JDBC
regarding JTable  how to populate a JTable with mysql data after clicking JButton please explain with the example
regarding tags - Struts
regarding tags  What is the difference between html:submit and nested:submit and usage of tags based on the situation
regarding struts 2
regarding struts 2   is it not possible to get values from applicationresources.properties into our application in struts 2
regarding mini project - JDBC
regarding mini project  i need to make a mini project using servlet and jdbc.pls help me with a real time application
regarding jdbc - JDBC
regarding jdbc  how to connect mysql with java example you have provided is having some error and i am not able to remove that error please provide me detail explanation   Hi friend, Please give the full source
regarding email - JavaMail
regarding email  hi i used the code which is in this web site to send email.But im getting an error while running. the error is:"Could not connect... that object. For read more information on Java Mail visit to : http

Ads