You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
format1.setLineSeparator("\n");
String inp = "Value Relative Humidity\n''\n''";
CsvParserSettings settings1 = new CsvParserSettings();
settings1.setFormat(format1);
settings1.setNormalizeLineEndingsWithinQuotes(true);
settings1.setHeaderExtractionEnabled(true);
CsvParser parser1 = new CsvParser(settings1);
List<String[]> parsedRows1 = parser1.parseAll(new StringReader(inp));
for (String[] array : parsedRows1){
for (String s : array){
System.out.println(s);
}
}
The string in the code has a single header followed by single quote values.
Expected output of header row is Value Relative Humidity but actual output got is [Value, Relative, Humidity]
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: