int colStartRowNum=TestCaseRowNum+1; int dataStartRowNum=TestCaseRowNum+2;
//total no of rows int rows=0; while(!xls.getCellData("TestData",0,dataStartRowNum+rows).trim().equals("")){ rows++; } System.out.println("Total no of rows"+rows);
//total no of cols int cols=0; while(!xls.getCellData("TestData", cols,colStartRowNum ).trim().equals("")){ cols++; } System.out.println("Total no of cols"+cols);
//display data //Object testData[][]=new Object[rows][1];//inside 1 the hashtable goes int i=0; for(int rNum=0;rNum<dataStartRowNum+rows;rNum++){ //for evryrow Iinsert put in hashtable ( created) Hashtable<String,String> table=new Hashtable<String,String>(); for(int cNum=0;cNum<cols;cNum++){