Online Hibernate Training just in Rs. 1000

One week online training in Hibernate ORM framework. Learn Hibernate Framework and enhance your skills. Best Online Hibernate training at 90% discount. Join Now!! Offer is valid Only for limited Period!!! Online Training Big Data and Hadoop Training Java Training  
 

Regarding core java

Ads

 
 

Share on Google+Share on Google+

ramesh
Regarding core java
2 Answer(s)      4 years ago
Posted in : Java Interview Questions

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

Ads
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


Ads









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 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 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 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 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 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 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 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 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 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 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 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
core java
core java  how to display characters stored in array in core java
core java
core java  basic java interview question
regarding rev
regarding rev  write a prog. in java that display all the arguments passed at the command line in reverse order
CORE JAVA
CORE JAVA  CORE JAVA PPT NEED WITH SOURCE CODE EXPLANATION CAN U ??   Core Java Tutorials
core java
core java  i need core java material   Hello Friend, Please visit the following link: Core Java Thanks
core java
core java  Hi, can any one expain me serialization,Deseralization and exterenalization in core java
core java
core java  Hi, can any one exain me the concept of static and dynamic loading in core java
core java
core java  how can we justify java technology is robust
Core JAva
Core JAva  how to swap 2 variables without temp in java
core java - Java Beginners
core java  i want to get java projects in core java
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