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. answers to the questions asked by ranjan in commen
View Tutorial          By: A Sadist at 2012-07-05 12:13:45

2. why do't you create ActionErrors object like this<
View Tutorial          By: veera reddy at 2011-07-15 12:14:57

3. I want an example...to get multiple values using S
View Tutorial          By: Madhu at 2015-07-13 19:57:14

4. HELP! HELP! HELP!
i got an time out at step

View Tutorial          By: sumit at 2009-04-03 20:19:51

5. nice to learn abt it
View Tutorial          By: aice at 2012-08-25 12:49:35

6. Ok, now I get it. New to Java and it just didnt ge
View Tutorial          By: izdelava strani at 2011-12-16 09:42:51

7. method overloading possible across classes????
View Tutorial          By: Rohit at 2011-01-26 20:23:02

8. Easy to understand.......
View Tutorial          By: Priya at 2013-02-15 10:55:52

9. Hi Chandra, you will have to download the winrar t
View Tutorial          By: Ramlak at 2008-08-08 00:14:40

10. its work well , thanks for code , but if any body
View Tutorial          By: mary at 2007-12-16 07:10:58