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



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 for providing this page it works with local
View Tutorial          By: Dharam Jaswal at 2012-02-02 13:19:24

2. explanation is good but i have one doubt what is t
View Tutorial          By: sulthan at 2012-10-09 06:13:14

3. good
View Tutorial          By: Devil vampire at 2009-03-23 12:20:03

4. Hi Braj,
You are probably using threads to

View Tutorial          By: Ramlak at 2009-01-29 20:03:14

5. hello can u send me the code in java to send and r
View Tutorial          By: somanath at 2011-02-17 01:28:40

6. Hibernate can be an effective framework if one app
View Tutorial          By: Giao Vu at 2011-08-03 23:40:02

7. Hey Narayanan, maybe you should check out Vesijama
View Tutorial          By: Benny Bottema at 2009-05-03 14:27:07

8. i need full program for connect oracle to struts l
View Tutorial          By: Munaver Basha at 2010-09-30 01:28:10

9. You are using stl; why do it by hand? All you nee
View Tutorial          By: gavin at 2013-02-21 12:31:29

10. hi,
i got an exception :in thread mai

View Tutorial          By: N.Venugopal at 2009-08-27 05:25:07