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. hi can u send me the complete working code for sen
View Tutorial          By: gautami at 2007-12-04 01:13:45

2. How to download more than one files. If I use for
View Tutorial          By: Riyas at 2012-01-08 07:55:03

3. Dim xlApp As Excel.Application
Dim

View Tutorial          By: Zarno at 2010-12-24 07:11:19

4. Hello! May I know where is the "main" fu
View Tutorial          By: Angelia at 2009-06-25 18:54:28

5. good example tnq...........
View Tutorial          By: SaidiReddy at 2012-06-09 12:03:09

6. Can you tell me what will happen when I use a free
View Tutorial          By: Neo at 2012-04-04 16:21:35

7. Isn't the Vector class deprecated now? I think Arr
View Tutorial          By: Brent at 2013-07-07 06:10:01

8. sir i need some simple example of jdbc i cannot un
View Tutorial          By: sumit at 2011-11-26 18:02:14

9. This says nothing meaningful.

So ho

View Tutorial          By: Andreas at 2012-09-23 23:01:01

10. Hi,
Its good but you can make it more bette

View Tutorial          By: vishakha sharma at 2010-12-15 06:14:52