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. Thankx, the information was of great use, I apprec
View Tutorial          By: sachin at 2008-12-13 03:37:11

2. How can i add all the values of an multidimensiona
View Tutorial          By: jolly at 2015-04-11 11:54:47

3. It won't work for me ;S
View Tutorial          By: jordi at 2011-01-21 08:22:45

4. It doesnt works in Mozilla Firefox.


View Tutorial          By: K Vijay Anand at 2010-06-20 09:11:26

5. Nice Tips thank you
View Tutorial          By: Giritharan at 2013-04-11 09:24:37

6. I like this tutorial, it is self explaining. good
View Tutorial          By: Nikia at 2013-01-25 20:04:30

7. Updated example to better show Thread T2 showing t
View Tutorial          By: Sanjiv at 2013-05-25 20:26:31

8. simple but very usefull example, thanks a lot
View Tutorial          By: yiyo at 2011-12-01 15:18:43

9. This says nothing meaningful.

So ho

View Tutorial          By: Andreas at 2012-09-23 23:01:01

10. it is a big help for us , as a IT student that kn
View Tutorial          By: nelson kent recites at 2012-01-19 08:56:26