code: public String[] getRow(int i, SimpleDateFormat df)
      {
          if(sheetData == null)
              unmarshall();
          String[] ret = null;
          Row r = (Row)rows.get(i);
          List row = (List)r.getC();
          if(row != null)
          {
              ret = new String[numColumns];
              for(int j = 0; j < row.size(); j++)
              {
                  Cell c = (Cell)row.get(j);
  
                  int col = getColumn(c.getR())-1;
                  if(col >= numColumns)
                      continue;
  
                  STCellType type = c.getT();
                  long style = c.getS();
                  String value = c.getV();
                  if(type.equals(STCellType.S))
                  { 
                      ret[col] = workbook.getSharedString(Integer.parseInt(value));
                  }
                  else if(type.equals(STCellType.B))
                  { 
                      ret[col] = value.equals("1") ? "TRUE" : "FALSE";
                  }
                  else if(type.equals(STCellType.N) && value != null && isDateTime(style))
                  {
                      double d = Double.parseDouble(value);
  
                      // Convert excel date (based on 1/1/1900)
                      //   to java date (based on 1/1/1970)
                      // Ignore times, which are stored as fraction of a day
                      if(d > 1.0d) 
                          d -= 25569d; 
  
                      long dt = (long)(d*86400000d);
                      ret[col] = df.format(new Date(dt+1L)); // Add 1ms to allow for rounding errors
                  }
                  else
                  {
                      ret[col] = value;
                  } 
              }
  
              // Change any null strings to the empty string
              if(ret != null)
              {
                  for(int j = 0; j < ret.length; j++)
                  {
                      if(ret[j] == null)
                          ret[j] = "";
                  }
              }
          }
          return ret;
      }
docs: Returns the array of columns for the given row in this worksheet.
  @param i The index of the row in the worksheet
  @param df The date format to use for date columns
  @return The array of columns for the given row in this worksheet