Programming Tutorials

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