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. Article from Java Complete Reference
View Tutorial          By: venkatesh at 2013-06-04 01:29:02

2. i have asked for refercing the object of main clas
View Tutorial          By: deepesh at 2012-08-20 10:33:58

3. practical example of funcation overloding
View Tutorial          By: yogesh at 2010-12-19 08:39:06

4. useful for me
View Tutorial          By: ganga at 2010-10-06 00:51:51

5. Where should I put the xml file ??????????
View Tutorial          By: Marya at 2014-03-21 16:01:13

6. Is site ki badolat main C++ mein paas ho gya !
View Tutorial          By: sharif at 2011-08-06 10:06:31

7. i tried with d above code but am getting an error
View Tutorial          By: Aishwarya at 2009-04-05 04:41:17

8. Really a great article!
I have some questio

View Tutorial          By: ron at 2010-03-30 01:37:12

9. A good tutorial! Hope this would help the JSP deve
View Tutorial          By: geetha at 2008-09-12 04:17:14

10. Nice explanation. And a good example to back it up
View Tutorial          By: fazil at 2009-07-29 00:32:03