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



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. thanks for your code
could you send me the

View Tutorial          By: diana jeng at 2009-04-21 03:50:39

2. its superb
View Tutorial          By: chotu jain at 2011-05-24 08:47:22

3. I managed to get the program working. However I ha
View Tutorial          By: Anthrax at 2012-02-15 10:11:19

4. hi,

i'm a jmeter user.in my test i

View Tutorial          By: mahesh at 2015-03-06 16:58:05

5. Very helpful.
View Tutorial          By: Krishna at 2012-06-14 10:25:00

6. I lik the description.
View Tutorial          By: Praveen saini at 2012-11-05 10:13:41

7. it is not working
View Tutorial          By: shaishav at 2013-06-20 08:03:06

8. Sir , I am doing BCA . I want to know more about j
View Tutorial          By: sandeep Namdev at 2008-09-16 05:47:22

9. Just what I was looking for. Great work. thx.
View Tutorial          By: SP Goh at 2008-03-24 01:09:09

10. thanks a lot
View Tutorial          By: Uzzal biswas at 2014-11-04 02:42:54