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. great!
thanks to your guide i've just under

View Tutorial          By: Chris at 2009-02-14 02:24:28

2. Thanks - very useful!
View Tutorial          By: Adam Musial-Bright at 2010-02-28 06:14:39

3. if(isset($_POST["check1"]=="1"
View Tutorial          By: krunal at 2012-11-22 10:30:19

4. this is the one of the best site to search java pr
View Tutorial          By: gautam gorai at 2009-01-13 06:44:15

5. thanks,Gud job
View Tutorial          By: junaid sheikh at 2012-11-21 16:24:27

6. i want full material of java with ds
with

View Tutorial          By: madhulatha at 2009-02-01 16:49:22

7. i avinash can i know how ur problem is resolved ,i
View Tutorial          By: santosh at 2011-12-06 10:35:42

8. thanks for this pertinent remark.
View Tutorial          By: mohammed at 2009-02-21 05:43:11

9. very nice and good introduction for beginners.
View Tutorial          By: annie at 2011-11-23 06:50:32

10. what is - MSComm1. You haven declared it as a vari
View Tutorial          By: Craig at 2011-05-01 16:37:13