if (myRow.getCell((short) 0) != null && myRow.getCell((short) 0).toString()!="" && myRow.getCell((short) 0)!=headings.get(0) && myRow.getCell((short) 0)!=headings.get(1) && myRow.getCell((short) 0)!=headings.get(2)&&myRow.getCell((short) 0).getStringCellValue()=="AAA"&& myRow.getCell((short) 0).getStringCellValue()=="BBB"&&myRow.getCell((short) 0).getStringCellValue()=="CCC"){
I was checking like above to print the rows whose first column is non null non empty and has values AAA,BBB,CCC. But it is not showing that result in console.
Next conecern is how to add AAA and BBB and CCC into property file and read it from property file itself in the code.
I created sample.properties file with content
String[] SALE_DATA=AAA,BBB,CCC
I imported it in my
java class as
static ResourceBundle genericImporterProp = ResourceBundle.getBundle("sample");
if (myRow.getCell((short) 0) != null && myRow.getCell((short) 0).toString()!="" && myRow.getCell((short) 0)!=headings.get(0) && myRow.getCell((short) 0)!=headings.get(1) && myRow.getCell((short) 0)!=headings.get(2)&&myRow.genericImporterProp.SALE_DATA){
above one also did not work. Please advise