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. Hey guys it's working. If not then remove p.waitFo
View Tutorial          By: dileep at 2013-01-04 19:51:38

2. hai
i can run this program bt 1 exception

View Tutorial          By: Raheela at 2010-05-25 21:59:38

3. THANK YOU.. YO SO HELP ME :D
View Tutorial          By: xgamer at 2015-08-06 06:45:52

4. C++ is more than nyc & fun, de most interestin
View Tutorial          By: Themba at 2010-09-12 09:11:04

5. I was trying to copy your coding and execute it, b
View Tutorial          By: Guest at 2012-01-02 04:08:21

6. /*for (i=0; i<lim-1 && (c=getchar())!=E
View Tutorial          By: GD at 2012-07-14 12:47:27

7. i want to say only one thing

great

View Tutorial          By: ashish at 2009-06-09 21:36:45

8. Works like a charm for me ! but i stuck with an is
View Tutorial          By: santosh at 2014-12-17 12:44:09

9. i had a problem in running a java software jdk1.5.
View Tutorial          By: tej at 2009-06-30 08:50:27

10. Managing several submissions can be a lot more sim
View Tutorial          By: Curran Cline at 2012-12-18 05:43:44