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. Hi lolz,
In order for this code to work, yo

View Tutorial          By: Vijay at 2008-12-10 19:22:04

2. i get this msg when one of the clients close there
View Tutorial          By: Zero Code at 2009-07-16 14:05:14

3. hi friends im the biginer of java
how to co

View Tutorial          By: Rock at 2013-05-14 09:27:19

4. Good one
View Tutorial          By: Ravi at 2007-11-19 03:30:40

5. wow........thanks a lot :)
View Tutorial          By: shiva at 2015-08-11 07:47:08

6. Hi it is working fine .but when my server we imple
View Tutorial          By: mohan at 2014-11-28 10:57:22

7. Very very nice example thank you
View Tutorial          By: Fabrice at 2010-12-03 03:36:18

8. It works like a charm. Thanks a lot.
View Tutorial          By: Balram at 2008-08-22 21:18:44

9. Good examples for beginners.
View Tutorial          By: Sagar at 2009-10-16 01:04:46

10. You have stretch it more then enough even then the
View Tutorial          By: Chirag at 2012-12-04 16:15:13