List of usage examples for org.apache.commons.csv CSVFormat getDelimiter
public char getDelimiter()
From source file:org.wso2.carbon.notebook.core.util.MLUtils.java
/** * Get the number of features in the lines * * @param line Lines of the table//ww w . j ava 2 s .c o m * @param format Data format of the lines * @return Number of features */ public static int getFeatureSize(String line, CSVFormat format) { String[] values = line.split("" + format.getDelimiter()); return values.length; }