title: what does "java.lang.StringIndexOutOfBoundsException: String index out of range: 68" mean?
body: <p>I keep getting this error "java.lang.StringIndexOutOfBoundsException: String index out of range: 68" while I use the Workbook to get the workbook of the |XL sheet in the filepath .</p>
  
  <p>I had initially thought it had something to do with the storing of filepaths but now thanks to the suggestions below am able to pin point the place where the exception is thrown. The exception is thrown from </p>
  
  <pre><code>Workbook wb = Workbook.getWorkbook(fs);
  </code></pre>
  
  <p>The full code.</p>
  
  <pre><code>public void readxls() {
  
  try{
  String FilePath = "C:\\Users\\names\\Documents\\details.xls";
  FileInputStream fs = new FileInputStream(FilePath);
  Workbook wb = Workbook.getWorkbook(fs);
  
  // TO get the access to the sheet
  Sheet sh = wb.getSheet("Sheet1");
  
  // To get the number of rows present in sheet
  int totalNoOfRows = sh.getRows();
  
  // To get the number of columns present in sheet
  int totalNoOfCols = sh.getColumns();
  
  for (int row = 1; row &lt; totalNoOfRows; row++) {
  System.out.println();
  
  
  
  String a = sh.getCell(0, row).getContents();
  String b = sh.getCell(1, row).getContents();
  String c = sh.getCell(2, row).getContents();
  String d = sh.getCell(3, row).getContents(); 
  System.out.println("A= "+a+ "B=" +b+ "C=" +c+"D=" +d);
  }}
  
  catch (Exception e) {
  System.out.println(e);
  }}
  </code></pre>
  
  <p>I want to iterate through the cells in the XL sheet and print it out.</p>