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



Comment Added by : need Help

Comment Added at : 2009-11-12 08:40:31

Comment on Tutorial : indexOf( ) and lastIndexOf( ) in Java By Hong
so what about, if i need to remove these letters for example

xR-MxR-MHelloxR-M - String to remove R-M
Hello

and remove all the R-M's and Hellos

is there a way that this could be demonstrated using indexOf()?

Thanks


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. Hi All,

This code is working fine i

View Tutorial          By: A.Balaji at 2010-09-27 04:40:38

2. I executed your code but i get the error "OK
View Tutorial          By: Denzil at 2013-01-18 09:33:37

3. hi issac thank you for your sample. can you please
View Tutorial          By: edwin at 2009-05-20 22:04:14

4. hello it wrong in memmove nd memcpy case. I am get
View Tutorial          By: jaya at 2012-04-05 17:18:14

5. aishwarya.. i also have that error.. have you solv
View Tutorial          By: Geok Lin at 2009-04-06 02:26:49

6. Very helpful stuff. Might I just add that you didn
View Tutorial          By: Donovan Aces at 2011-09-12 06:08:20

7. thanks happy to see such a site about java!
View Tutorial          By: nnnmore at 2007-03-16 06:29:20

8. the difference is of great important for new comme
View Tutorial          By: ramesh shetty at 2013-03-12 15:27:23

9. is there a way to notify a specific thread?
View Tutorial          By: bob at 2010-03-23 11:57:29

10. enter no of line: 5 not fix value
out put i

View Tutorial          By: mark at 2013-01-31 14:30:00