how to read two consecutive commas from .csv file format as unique value in java
问题 Suppose csv file contains 1,112,,ASIF Following code eliminates the null value in between two consecutive commas. Code provided is more than it is required String p1=null, p2=null; while ((lineData = Buffreadr.readLine()) != null) { row = new Vector(); int i=0; StringTokenizer st = new StringTokenizer(lineData, ","); while(st.hasMoreTokens()) { row.addElement(st.nextElement()); if (row.get(i).toString().startsWith("\"")==true) { while(row.get(i).toString().endsWith("\"")==false) { p1= row.get