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



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. it is unfair to leave this portal without thanking
View Tutorial          By: anil kumar at 2009-12-30 23:40:25

2. wt about line of 35 {e.printStackTrace();} i don'
View Tutorial          By: Reddymalla Babu Sircilla at 2013-02-22 08:38:30

3. excellent, thanks a lot..............
View Tutorial          By: yellareddy at 2013-03-12 06:56:12

4. Hi,
i am using crystal report 9. Once i ins

View Tutorial          By: jeff at 2012-02-12 08:14:15

5. I got a project on J2ME and i was to start to kno
View Tutorial          By: md kadir ali , vit university , vellore at 2010-05-12 00:59:58

6. Getting Invalid IPv4 format J2me Midp 2.0, Asp.net
View Tutorial          By: Anup at 2013-01-02 05:11:51

7. can anybode tell me how can i make my own bluetoot
View Tutorial          By: Prasenjit at 2013-10-11 06:57:13

8. Hi Ramlak
I am trying to run your code.

View Tutorial          By: jainitya at 2011-05-04 12:26:16

9. i thnk exampleThread example is wrong - like billg
View Tutorial          By: oldman at 2011-09-24 12:32:33

10. thanku this is very good example
View Tutorial          By: priyanka at 2012-10-02 13:08:49