I am trying toi read a comma delimited file which looks like
RR,R,Y,N,,,,S,T and several such rows from a text file.
I am using a StringTokeniser with , as the delimiter to read each token and put each token in a Hashtable.I would like to be able to check if there is nothing between two commas then it assign a null value for that item?? How do I this. Currently when i check for nextToken and put in the hashtable it does not take the null between two commas.
I would appreciate if some solution is possible with a snippet of the code. We could use Hashmap if Hashtable does not permit null values.