READING DATA FROM EXCEL(Code)


import java.io.File;
import java.io.IOException;

import jxl.*;
import jxl.read.biff.BiffException;
public class Jmeter {
 public static void main(String asp[]) throws BiffException, IOException
 {
   
  Workbook workbook = Workbook.getWorkbook(new File("C:\\Frame11.xls"));
  Sheet sheet = workbook.getSheet(0);
  Cell cell =sheet.getCell(0, 0);
  Cell cell1 =sheet.getCell(0, 1);
  Cell cell2 =sheet.getCell(0, 2);
  String s = cell.getContents();
  String s1 = cell1.getContents();
  String s2 = cell2.getContents();
  System.out.print("HEllo   "+s+"  "+s1+"     "+s2);
  
 }

 
};

No comments :

No comments :

Post a Comment