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. Thanks a lot man with the server -side code.
View Tutorial          By: bot at 2011-12-03 15:04:28

2. hi the code is working fine till step5 and am gett
View Tutorial          By: raj at 2008-09-16 22:55:40

3. @pawan: Wow. Your comment is museum-quality art, a
View Tutorial          By: Steve at 2013-02-21 20:30:47

4. easy to understand and it helped me a lot in prepa
View Tutorial          By: shandini at 2011-04-14 13:14:33

5. Hi,

I tried this script with noki

View Tutorial          By: sravan at 2009-07-11 11:17:45

6. Nice Intro to start J2Me
View Tutorial          By: Mak at 2009-07-04 10:36:00

7. Thanx.. it helps me a lot, now.. i have 1 more que
View Tutorial          By: GuzZpaWn at 2012-01-15 17:19:29

8. Thanks for the explanication
View Tutorial          By: Koklen at 2012-06-20 03:40:05

9. Good
View Tutorial          By: sandesh at 2009-10-01 01:15:29

10. Hi it is working fine .but when my server we imple
View Tutorial          By: mohan at 2014-11-28 10:57:22