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



Ask a Question

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. very good explanation,very good examples..
View Tutorial          By: sra1 at 2011-11-14 08:30:47

2. Excellent. I got stuck in a huge project and was f
View Tutorial          By: Rahul Tiwari at 2010-12-08 22:40:29

3. Barely can understand it even I'm a NEWBIES ^^
View Tutorial          By: YieonChee at 2012-11-28 17:56:24

4. hi all i receive below error can any one help me p
View Tutorial          By: Purushothaman at 2009-04-03 17:38:42

5. this is really helpful example for Learning RMS in
View Tutorial          By: Ahmed Nawaz Mari at 2011-06-30 05:29:18

6. Thank you. This is really awesome... Helped us a l
View Tutorial          By: Shivakumar at 2012-09-12 15:23:21

7. Hai everyone,I am getting error like *** time out
View Tutorial          By: Prasad at 2011-08-30 06:28:44

8. Great guide. Missed the lecture, and this summed e
View Tutorial          By: Anonymous at 2008-12-21 19:36:19

9. it was so nice .................i can easily solve
View Tutorial          By: pravin at 2012-07-14 06:15:33

10. @Jai Shankar K

I'm guessing you are

View Tutorial          By: Nick Scroggs at 2013-03-26 01:44:04