lundi 14 septembre 2020

I want to separate the delimiters of a single cell of the .csv file into columns in java selenium

Below is the code which i have written.I want to separate the text with delimiters(;) of a single cell of the .csv file into columns in java selenium

{
String MyCsv = "C:\\20200903_114246_505.csv";
                //String csv = 
                String[] arrSplit = MyCsv.split(";");
                for (int i=0; i < arrSplit.length; i++)
                {
                  System.out.println(arrSplit[i]);
                }
              
                 System.out.println("success");
}

Aucun commentaire:

Enregistrer un commentaire