title: How to access perticular data in excel sheet
body: <p>actually i want to fetch a particular data from excel sheet (.xls and .xlsx) like i have a column name email in my excel sheet and i want to fetch only that column. This is my code which is already i wrote but this is fetching all the details.Sorry for my grammar.</p>
  
  <p>package readfile;</p>
  
  <pre><code> import java.io.File;
  
   import jxl.Cell;
   import jxl.Sheet;
   import jxl.Workbook;
   public class reademail {
  
  
      public static void main(String[] args) throws Exception 
      {
  
  
          File f=new File("C:\\Users\\LQRP0023\\Desktop\\try.xls");
  
          Workbook wb=Workbook.getWorkbook(f);
  
          Sheet s=wb.getSheet(0);
  
          int row=s.getRows();
  
          int col=s.getColumns();
  
  
           for(int i=0;i&lt;row;i++)
           {
  
              for(int j=0;j&lt;col;j++)
  
               {
                  Cell c=s.getCell(j,i);
  
                  System.out.print(c.getContents());
               }
  
            System.out.println("");
          // TODO Auto-generated method stub
  
         } }}
  </code></pre>