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



Comment Added by : Mike

Comment Added at : 2010-10-14 20:09:31

Comment on Tutorial : indexOf( ) and lastIndexOf( ) in Java By Hong
To "need help":

String str = "xR-MxR-MHelloxR-M";
System.out.println(str.substring(str.lastIndexOf("M", 15)+1, str.lastIndexOf("x")));

;-)


View Tutorial



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. I think it is the best article for freshers.thanks
View Tutorial          By: srikanth at 2010-11-01 23:27:53

2. pls tell me how to run the prog step by step. just
View Tutorial          By: divakar varshney at 2015-04-02 11:14:34

3. What is meant ClasspathResource why do we use it i
View Tutorial          By: anil kumar at 2008-06-03 05:41:36

4. hi....can anybody help me....
i need the co

View Tutorial          By: nithin ms at 2007-02-23 08:34:01

5. hi,

i'm a jmeter user.in my test i

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

6. please i need the link to download the file requir
View Tutorial          By: kamahsteve at 2012-11-17 10:20:22

7. hi....!
This program is working well in co

View Tutorial          By: param at 2014-10-15 07:02:49

8. Thanks a lot!!!

Its very useful exp

View Tutorial          By: dipali at 2012-12-31 06:49:41

9. somebody help me doing my case study .. its a rese
View Tutorial          By: lady at 2013-12-25 08:21:03

10. really good
View Tutorial          By: ammu at 2009-11-04 05:07:14