Ulf Dittmer wrote:Post the complete stack trace and the code that causes it; be sure to indicate the statement where the exception occurs.
StringTokenizer st1 = new StringTokenizer(strFileContent,"\n");
I dont understand where and why that exception is coming from.
About cells enclosed in double quotes, are you mentioning about the data in my CSV file?
Im not much aware of how CSV libraries work. I can make use of them if you suggest me a good one here.
And Ulf, how to skip the first row? bcuz i dont want to store first row elements in my DB.
I hope if anyone need to upload CSV and read in java, they can use my code.