Sunday, 1 November 2015

How to compare string from arrayList to String in array


ArrayList<String> li=microRNA.getColumnName();
syso(li);

Here, my output:
"","ID","Symbol","Source","Confidence","Expression Pairing","Symbol","Entrez Gene Name","Disease","Location","Molecule Type","Pathway","Species","Tissue/Cell Line".

Want to compare above out put with
String[] headerList={"","ID","Symbol","Source","Confidence","Expression Pairing","Symbol","Entrez Gene Name","Disease","Location","Molecule Type","Pathway","Species","Tissue/Cell Line"};

Logic:
    for(int i=0;i<headerList.length;i++)
            {               
            System.out.println(headerList[i]);
            LoggingUtilities.verifyEquals("Verify Add to list for mRNA source types and verify the added molecules in List", headerList[i], li.get(i));
            }

No comments:

Post a Comment