If you want to get each item seperate, you will need to use a StringTokenizer.
While looping, you could take the read line and tokenize it:
ArrayList first = new ArrayList();
ArrayList second = new ArrayList();
ArrayList third = new ArrayList();
ArrayList fourth = new ArrayList();
int count = 1;
while (br.readLine() != null)
{
StringTokenizer st = new StringTokenizer(br.readLine());
while (st.hasMoreTokens())
{
if (count == 1)
{
first.add(st.nextToken());
}
else if (count == 2)
{
second.add(st.nextToken();
}
}
}
You get the drift.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20