Dear,
You're can write:
String str = "Anne Gomez ; 5th Avenue ;;925 NY ; 1978/10/11";
System.out.println(str.substring(0, str.indexOf(";", 1)));
System.out.println(str.substring(str.indexOf(";", 1) + 1,
str.lastIndexOf(";")));
System.out.println(str.substring(str.lastIndexOf(";") + 1));
2010/9/
I would suggest you look into StringTokenizer - it has methods for parsing and
splitting strings like yours.
A quick search should bring up lots of examples.
Good luck
Evans
http://javawug.org
> Date: Fri, 24 Sep 2010 10:20:19 -0700
> Subject: [java ee programming] Parse data
> From: paulito.s
Yes,
define a constructor or method that takes your input string..
Then loop through each line and serch for ';' .best would be toput
thay in array string..
jd
On 9/24/10, Santana wrote:
> Hi all,
> i'am newbie in JAVA and i would liked your point of views/opinion for
> the following situation