I am working with StringTokenizer when I am reading in a file.
I am using a two-dimensional array to store my tokens. However the tab delimited text file I am reading in does not always have one word per column. In other words some entries are like:
"New York"
I want to treat this as one column and not two. Unfortunately, StringTokenizer treats these as separate tokens (ie 2 columns) in the case for me.
Is there a nextColumn method or a way for me to treat the example above a one token?
Thanks.
I am using a two-dimensional array to store my tokens. However the tab delimited text file I am reading in does not always have one word per column. In other words some entries are like:
"New York"
I want to treat this as one column and not two. Unfortunately, StringTokenizer treats these as separate tokens (ie 2 columns) in the case for me.
Is there a nextColumn method or a way for me to treat the example above a one token?
Thanks.