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. your second last example in above code (Character
View Tutorial          By: rupam shaw at 2013-04-24 08:36:05

2. Please help .... I can't access this code. so any
View Tutorial          By: Sonu Kumar at 2014-02-26 11:31:08

3. thanks. worked.
View Tutorial          By: che at 2010-03-10 11:29:10

4. I have copied c:\php\bin\msvcr80.dll to C:\Program
View Tutorial          By: agt at 2009-10-11 09:24:06

5. really a gud work for xml parsing readers
View Tutorial          By: shreya at 2010-07-02 02:35:04

6. good code
View Tutorial          By: neha at 2011-07-02 01:46:52

7. thanks i am fresher to j2me i understand the conce
View Tutorial          By: anusha at 2010-04-20 00:32:10

8. gud tutorial but the permission denied is because
View Tutorial          By: amithooda at 2012-06-11 06:43:00

9. Good start for me. At least I now know what i am s
View Tutorial          By: eoaddai at 2011-12-23 20:53:35

10. Thank u very much, your topic is very clear, to th
View Tutorial          By: Ahmed Samir at 2011-05-26 23:35:22