Comment on Tutorial - Using substring( ) in Java By Fazal



Comment Added by : Eric

Comment Added at : 2009-04-26 19:20:26

Comment on Tutorial : Using substring( ) in Java By Fazal
Could you somehow use the substring method to parse text? For example, I have the string:
"Name: Will Smith School: West Project: Earth Day Name: Mary Joe School: Central Project: Volcano"

I would like to parse the text by topics so it appears as such:
"Name: Will Smith
School: West
Project: Earth Day
Name: Mary Joe
School: Central
Project: Volcano"


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
View Tutorial          By: nitin at 2010-03-29 01:02:57

2. simply super...every one can understand
View Tutorial          By: prashanth at 2013-03-10 12:20:25

3. Introduction is very clear I get the answer what I
View Tutorial          By: sathya at 2013-02-05 15:57:30

4. Thank so much it helped me God bless :)
View Tutorial          By: Judito at 2014-06-14 06:52:18

5. really helpfull :) thanks
View Tutorial          By: Jagan at 2014-12-09 10:16:56

6. how do i write the above same code using ajax and
View Tutorial          By: Karthik at 2011-08-29 11:21:45

7. pretty simply explained
View Tutorial          By: nivedita at 2011-06-09 07:32:58

8. How we print this structure in C++, with nested lo
View Tutorial          By: Hussnain at 2012-01-27 09:19:41

9. hi
thanks for the above code
Anyone

View Tutorial          By: mjnanthini at 2010-09-29 00:59:01

10. Thanks, it worked.
View Tutorial          By: Deepak Varier at 2009-08-19 03:38:07