Comment on Tutorial - Using substring( ) in Java By Fazal



Comment Added by : Fazal

Comment Added at : 2008-09-12 20:17:53

Comment on Tutorial : Using substring( ) in Java By Fazal
Hi puru, The syntax is substring(int startIndex, int endIndex). Therefore you should pass two integer numbers to this method. The first one indicates the starting index and the second one indicates the ending index. For example, if you want to take the substring 'He' from the String 'Hello' then you would specify substring(0,2) which means start from the first character and finish after the second character.

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. Can Some body help me??
i want To show date

View Tutorial          By: saif at 2013-04-29 09:22:31

2. Thanks. Your post was clear and worked perfectly a
View Tutorial          By: Suma at 2009-03-05 09:40:08

3. I'm trying to learn navigating between activities.
View Tutorial          By: Ben at 2012-01-17 23:42:38

4. thanks a lot
View Tutorial          By: Uzzal biswas at 2014-11-04 02:42:54

5. I am deveolper in envision .i am interested in scj
View Tutorial          By: shiva kumar at 2013-02-20 05:51:42

6. Good explanation
View Tutorial          By: Siddesh at 2012-07-12 03:53:07

7. this is a site site for our problem to be sorted o
View Tutorial          By: Atique at 2009-11-02 00:15:18

8. Your program contains only data retrieval command.
View Tutorial          By: Govindarajan at 2012-02-08 01:02:01

9. Is there a code that can hide smses, when they ent
View Tutorial          By: James at 2010-11-18 03:32:56

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