This content has been marked as final. Show 4 replies
Use line.split(",", -1) then you will always get all the fields even if they are empty.
P.S. It is always worth reading the Javadoc.
Thanks Sir. It is working fine now.
And how is that related to Swing?
Did you really think there was a "String" forum, and Sun simply mispelled it?!?