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



Comment Added by : alex

Comment Added at : 2010-05-13 09:57:25

Comment on Tutorial : indexOf( ) and lastIndexOf( ) in Java By Hong
To "need help":

String str = "xR-MxR-MHelloxR-M";
for (String r : new String[] {"R-M", "Hello"})
{
str.replaceAll(r);
}


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. hmmmmmm good
View Tutorial          By: Haritha chinnu at 2012-06-30 09:37:49

2. Hi Gaurav, The sample in this tutorial is just a c
View Tutorial          By: Ramlak at 2009-01-28 20:00:08

3. thanks a lot ..
View Tutorial          By: indra at 2009-03-25 15:40:03

4. very useful. Thx
View Tutorial          By: reddy at 2015-05-07 09:58:19

5. I used two phrases of the security section for the
View Tutorial          By: pabo at 2010-04-05 05:22:24

6. it is good site , and i have cleared my doubts
View Tutorial          By: imtiaz at 2009-10-15 23:43:50

7. i thnk exampleThread example is wrong - like billg
View Tutorial          By: oldman at 2011-09-24 12:32:33

8. thnx for the nice tutorial. but i need to create a
View Tutorial          By: sharath at 2013-09-07 16:29:19

9. Hi, I have one problem in spinner items. I want to
View Tutorial          By: soodi at 2011-10-18 18:15:58

10. can any body explain me how to execute the program
View Tutorial          By: nikhil at 2009-06-04 23:56:11