read csv file
上一篇 /
下一篇 2012-03-02 18:01:00
/ 个人分类:java
public ArrayList<String> getValuesCsv() throws IOException{
CSVReader reader = new CSVReader(new FileReader("selenium.csv"),','
);
String[] nextLine = null;
ArrayList<String> arrayValues = new ArrayList<String>();
nextLine = reader.readNext();
do{
arrayValues.add(nextLine[0]);
}while ((nextLine = reader.readNext()) != null);
return arrayValues;
}
Collections.sort(arrayValues);
收藏
举报
TAG: