Please help me to read the first column of the CSV file in Java. Here's my code:
public void fileload(String filename)throws IOException
{ int i=0;
//Sorter S= new Sorter();
File file=new File(filename); //Read File
Scanner inputfile = new Scanner(file);
while(inputfile.hasNext()) //Reading file content
{
orgarr[i]= inputfile.nextLine();
System.out.println(orgarr[i]);
i++;
}