M
Mullin
.....
.....
lineBuf = r.readLine();
String[] results = lineBuf.split(",");
.....
.....
if the line at the text file is
case 1
======
1,named,phoned,field1d,,,
=> results.length = 4
case 2
=======
2,namec,phonec,field1c,field2c,field3c,field4c
=> results.length = 7
case 3
1,named,phoned,field1d,,,
=> results.length = 7
note: there's a white space at the end of case 3
i find it strange that for case 1, i expect a SEVEN-element array will
be create/returned, but case 1 only return a 4-element array to me.
.....
lineBuf = r.readLine();
String[] results = lineBuf.split(",");
.....
.....
if the line at the text file is
case 1
======
1,named,phoned,field1d,,,
=> results.length = 4
case 2
=======
2,namec,phonec,field1c,field2c,field3c,field4c
=> results.length = 7
case 3
1,named,phoned,field1d,,,
=> results.length = 7
note: there's a white space at the end of case 3
i find it strange that for case 1, i expect a SEVEN-element array will
be create/returned, but case 1 only return a 4-element array to me.