title: I have an error with system.out.print and I don't know why?
body: <p>This is my code:</p>
  
  <pre><code>public class Outline {
  
          int rowIndex=62;//hsample number
          int colIndex=2;//sample number, will be determined by RNG when I'm done
  
          String val=read1(rowIndex,colIndex);
  
          System.out.print(val);//This is where the error is, I don't know what's wrong with it.
  
  
  
      public static final String FILE_NAME = "Copy_of_Words.xls";
  
      public static String read1(int rowIndex, int colIndex){
  
          String value = new String();
          HSSFWorkbook wb = null;
  
  
          try {
              wb= new HSSFWorkbook(new FileInputStream(FILE_NAME));
          } catch (Exception e){//in here, say what needs to be done
  
          }
  
          HSSFSheet sheet=wb.getSheet("SAT"); //here, user input will determine sheet
          HSSFRow row=sheet.getRow(rowIndex-1);
          HSSFCell cell=row.getCell(colIndex-1);
  
          DataFormatter formatter = new DataFormatter();
          value = formatter.formatCellValue(cell);
  
          return value;
      }       
  }
  </code></pre>
  
  <p>What exactly is the problem with system.out.print(val)? I can't figure it out. I'm using apache and excel in the program, but I don't think that should cause problems.</p>