Ihavea.CSVfilewithseveralnumbersintwocolumns(1032,54832).Ineedtogetthesenumbersandpassthemtoavector.HowdoIdothis?
ImadeacodetoimportthefileandIcandisplaythenumbers,butatthetimeofpassingthevaluestothevector,I'mhavingproblems.BelowiswhatIdid(Thiscodeisinsideabuttonthatdisplaysthenumbersinsidethe.CSVfile):
StringLineFile=newString();FilefileCSV=newFile(LocalFile.getText());try{Scannerreader=newScanner(fileCSV);while(reader.hasNext()){LineFile=reader.nextLine();Stringnumb[]=LineFile.split(",");
System.out.println(LineFile);
}
}
catch (FileNotFoundException e)
{
}