Comment on Tutorial - indexOf( ) and lastIndexOf( ) in Java By Hong



Comment Added by : Sandeep

Comment Added at : 2014-08-25 02:19:53

Comment on Tutorial : indexOf( ) and lastIndexOf( ) in Java By Hong
indexOf and contains methods are typically used for performing search operations on the string. Wanted to share a point that indexOf method can be used to reverse the strings without reverse function of string class. This question of string reversal is usually asked in interview.

<a href="http://www.javaexperience.com/contains-and-indexof-methods-from-the-string-class">how to search inside strings</a>


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. article is good but I would have liked to get more
View Tutorial          By: Bharat Agrawal at 2010-09-25 22:18:40

2. Nice Article, but these concepts are pretty confus
View Tutorial          By: Goldest at 2011-03-18 01:50:50

3. Hi ,
please i need j2me appliacation :

View Tutorial          By: youyou92 at 2014-12-01 18:20:52

4. Hey guys, can u help me out over here..
thi

View Tutorial          By: Ridge Fernandes at 2012-01-19 04:09:45

5. Can u tell it can also use for connecting to oracl
View Tutorial          By: Ankur Jain at 2010-08-06 05:31:08

6. Well, this fix worked form me using Apache 2.2.11,
View Tutorial          By: Bruce at 2009-07-21 15:03:02

7. You are good work ,an axplane is so gread

View Tutorial          By: chetan at 2009-06-08 11:58:51

8. thanks alot!
View Tutorial          By: gumuruh at 2010-11-06 11:27:18

9. To RUN this code, follow below steps


View Tutorial          By: Ajay at 2010-09-04 03:01:24

10. very nice program but more info require
View Tutorial          By: pradeep at 2010-07-15 01:11:37