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. good
View Tutorial          By: sasikiran at 2008-03-30 23:33:24

2. Hi,
i tried this way.that works perfectly.

View Tutorial          By: indu at 2009-06-08 03:13:51

3. I want to use concept of overriding and i want to
View Tutorial          By: Aniket at 2013-06-20 10:23:10

4. Good Introduction to start j2me.thanks
View Tutorial          By: Ravinder Kasarla at 2008-12-26 06:59:29

5. The result shown in the left shift is wrong...
View Tutorial          By: krishnalal.K.K at 2008-05-21 03:05:07

6. Sat Apr 23 10:44:14 IST 2011:Sender:*** time out a
View Tutorial          By: sasivarnan at 2011-04-23 01:17:18

7. Great! Concise, helpful, a real life-saver. Google
View Tutorial          By: Motti Shneor at 2012-07-31 14:29:37

8. Great sample. Happy I found this site.
View Tutorial          By: javaslave at 2008-08-03 04:43:20

9. plz can u give me code for database connectivity f
View Tutorial          By: nilam at 2012-03-15 12:54:07

10. how to trim in jsp page and to send the trimed con
View Tutorial          By: monishaa at 2015-07-16 10:06:11