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. do we require a gsm modem for sure ? aren't there
View Tutorial          By: sherry at 2012-07-10 11:28:58

2. i need some more basic java programs in all type
View Tutorial          By: jkamal at 2012-11-05 04:57:49

3. new Thread(this , "Demo thread") mean
View Tutorial          By: shalini at 2011-12-06 07:29:20

4. thanks for this good example. i got error like (th
View Tutorial          By: anandhi at 2009-12-20 09:32:45

5. Thank you so much
View Tutorial          By: Daniel at 2011-02-14 22:47:05

6. hi

im trying to run this project an

View Tutorial          By: VoyRufino at 2010-01-26 10:03:11

7. Hi,

I am getting error "Sender

View Tutorial          By: Jose at 2008-05-26 08:17:48

8. because equals method compares on object reference
View Tutorial          By: mohit s. at 2011-12-24 06:29:35

9. Excellent explanation...Thanku.
View Tutorial          By: Rajpal Singh at 2012-12-29 05:36:20

10. xml response is :

<?xml version=

View Tutorial          By: Madhu at 2011-06-29 09:47:51